Lines Matching refs:vid
36 const unsigned char *addr, u16 vid);
91 __u16 vid) in fdb_find_rcu() argument
97 key.vlan_id = vid; in fdb_find_rcu()
106 __u16 vid) in br_fdb_find() argument
113 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find()
121 __u16 vid) in br_fdb_find_port() argument
134 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port()
145 __u16 vid) in br_fdb_find_rcu() argument
147 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu()
219 u16 vid = f->key.vlan_id; in fdb_delete_local() local
225 (!vid || br_vlan_find(vg, vid))) { in fdb_delete_local()
233 v = br_vlan_find(vg, vid); in fdb_delete_local()
236 (!vid || (v && br_vlan_should_use(v)))) { in fdb_delete_local()
247 const unsigned char *addr, u16 vid) in br_fdb_find_delete_local() argument
252 f = br_fdb_find(br, addr, vid); in br_fdb_find_delete_local()
293 fdb_insert(br, p, newaddr, v->vid); in br_fdb_changeaddr()
323 f = br_fdb_find(br, br->dev->dev_addr, v->vid); in br_fdb_change_mac_address()
326 fdb_insert(br, NULL, newaddr, v->vid); in br_fdb_change_mac_address()
388 u16 vid, in br_fdb_delete_by_port() argument
400 if (f->is_static || (vid && f->key.vlan_id != vid)) in br_fdb_delete_by_port()
486 __u16 vid, in fdb_create() argument
496 fdb->key.vlan_id = vid; in fdb_create()
517 const unsigned char *addr, u16 vid) in fdb_insert() argument
524 fdb = br_fdb_find(br, addr, vid); in fdb_insert()
532 source ? source->dev->name : br->dev->name, addr, vid); in fdb_insert()
536 fdb = fdb_create(br, source, addr, vid, 1, 1); in fdb_insert()
547 const unsigned char *addr, u16 vid) in br_fdb_insert() argument
552 ret = fdb_insert(br, source, addr, vid); in br_fdb_insert()
558 const unsigned char *addr, u16 vid, bool added_by_user) in br_fdb_update() argument
572 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_update()
578 source->dev->name, addr, vid); in br_fdb_update()
595 trace_br_fdb_update(br, source, addr, vid, added_by_user); in br_fdb_update()
601 fdb = fdb_create(br, source, addr, vid, 0, 0); in br_fdb_update()
605 trace_br_fdb_update(br, source, addr, vid, in br_fdb_update()
775 u16 vid, u32 portid, u32 seq, in br_fdb_get() argument
783 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_get()
799 const u8 *addr, u16 state, u16 flags, u16 vid, in fdb_add_entry() argument
821 fdb = br_fdb_find(br, addr, vid); in fdb_add_entry()
826 fdb = fdb_create(br, source, addr, vid, 0, 0); in fdb_add_entry()
883 u16 nlh_flags, u16 vid) in __br_fdb_add() argument
895 br_fdb_update(br, p, addr, vid, true); in __br_fdb_add()
899 err = br_fdb_external_learn_add(br, p, addr, vid, true); in __br_fdb_add()
903 nlh_flags, vid, ndm->ndm_flags); in __br_fdb_add()
913 const unsigned char *addr, u16 vid, u16 nlh_flags, in br_fdb_add() argument
922 trace_br_fdb_add(ndm, dev, addr, vid, nlh_flags); in br_fdb_add()
948 if (vid) { in br_fdb_add()
949 v = br_vlan_find(vg, vid); in br_fdb_add()
951 pr_info("bridge: RTM_NEWNEIGH with unconfigured vlan %d on %s\n", vid, dev->name); in br_fdb_add()
956 err = __br_fdb_add(ndm, br, p, addr, nlh_flags, vid); in br_fdb_add()
969 err = __br_fdb_add(ndm, br, p, addr, nlh_flags, v->vid); in br_fdb_add()
996 const unsigned char *addr, u16 vid) in __br_fdb_delete() argument
1001 err = fdb_delete_by_addr_and_port(br, p, addr, vid); in __br_fdb_delete()
1010 const unsigned char *addr, u16 vid) in br_fdb_delete() argument
1032 if (vid) { in br_fdb_delete()
1033 v = br_vlan_find(vg, vid); in br_fdb_delete()
1035 pr_info("bridge: RTM_DELNEIGH with unconfigured vlan %d on %s\n", vid, dev->name); in br_fdb_delete()
1039 err = __br_fdb_delete(br, p, addr, vid); in br_fdb_delete()
1049 err &= __br_fdb_delete(br, p, addr, v->vid); in br_fdb_delete()
1109 const unsigned char *addr, u16 vid, in br_fdb_external_learn_add() argument
1116 trace_br_fdb_external_learn_add(br, p, addr, vid); in br_fdb_external_learn_add()
1120 fdb = br_fdb_find(br, addr, vid); in br_fdb_external_learn_add()
1122 fdb = fdb_create(br, p, addr, vid, 0, 0); in br_fdb_external_learn_add()
1162 const unsigned char *addr, u16 vid, in br_fdb_external_learn_del() argument
1170 fdb = br_fdb_find(br, addr, vid); in br_fdb_external_learn_del()
1182 const unsigned char *addr, u16 vid, bool offloaded) in br_fdb_offloaded_set() argument
1188 fdb = br_fdb_find(br, addr, vid); in br_fdb_offloaded_set()
1195 void br_fdb_clear_offload(const struct net_device *dev, u16 vid) in br_fdb_clear_offload() argument
1208 if (f->dst == p && f->key.vlan_id == vid) in br_fdb_clear_offload()