Lines Matching full:vid
36 const unsigned char *addr, u16 vid);
92 __u16 vid) in fdb_find_rcu() argument
98 key.vlan_id = vid; in fdb_find_rcu()
107 __u16 vid) in br_fdb_find() argument
114 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find()
122 __u16 vid) in br_fdb_find_port() argument
135 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port()
146 __u16 vid) in br_fdb_find_rcu() argument
148 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu()
220 u16 vid = f->key.vlan_id; in fdb_delete_local() local
226 (!vid || br_vlan_find(vg, vid))) { in fdb_delete_local()
234 v = br_vlan_find(vg, vid); in fdb_delete_local()
237 (!vid || (v && br_vlan_should_use(v)))) { in fdb_delete_local()
248 const unsigned char *addr, u16 vid) in br_fdb_find_delete_local() argument
253 f = br_fdb_find(br, addr, vid); in br_fdb_find_delete_local()
296 fdb_insert(br, p, newaddr, v->vid); in br_fdb_changeaddr()
327 f = br_fdb_find(br, br->dev->dev_addr, v->vid); in br_fdb_change_mac_address()
331 fdb_insert(br, NULL, newaddr, v->vid); in br_fdb_change_mac_address()
399 * if vid is set delete all entries that match the vlan_id
403 u16 vid, in br_fdb_delete_by_port() argument
418 (vid && f->key.vlan_id != vid)) in br_fdb_delete_by_port()
504 __u16 vid, in fdb_create() argument
513 fdb->key.vlan_id = vid; in fdb_create()
529 const unsigned char *addr, u16 vid) in fdb_insert() argument
536 fdb = br_fdb_find(br, addr, vid); in fdb_insert()
544 source ? source->dev->name : br->dev->name, addr, vid); in fdb_insert()
548 fdb = fdb_create(br, source, addr, vid, in fdb_insert()
560 const unsigned char *addr, u16 vid) in br_fdb_insert() argument
565 ret = fdb_insert(br, source, addr, vid); in br_fdb_insert()
578 const unsigned char *addr, u16 vid, unsigned long flags) in br_fdb_update() argument
586 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_update()
592 source->dev->name, addr, vid); in br_fdb_update()
617 trace_br_fdb_update(br, source, addr, vid, flags); in br_fdb_update()
623 fdb = fdb_create(br, source, addr, vid, flags); in br_fdb_update()
625 trace_br_fdb_update(br, source, addr, vid, flags); in br_fdb_update()
813 u16 vid, u32 portid, u32 seq, in br_fdb_get() argument
821 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_get()
861 const u8 *addr, struct ndmsg *ndm, u16 flags, u16 vid, in fdb_add_entry() argument
893 fdb = br_fdb_find(br, addr, vid); in fdb_add_entry()
898 fdb = fdb_create(br, source, addr, vid, 0); in fdb_add_entry()
953 u16 nlh_flags, u16 vid, struct nlattr *nfea_tb[]) in __br_fdb_add() argument
968 br_fdb_update(br, p, addr, vid, BIT(BR_FDB_ADDED_BY_USER)); in __br_fdb_add()
972 err = br_fdb_external_learn_add(br, p, addr, vid, true); in __br_fdb_add()
975 err = fdb_add_entry(br, p, addr, ndm, nlh_flags, vid, nfea_tb); in __br_fdb_add()
990 const unsigned char *addr, u16 vid, u16 nlh_flags, in br_fdb_add() argument
1000 trace_br_fdb_add(ndm, dev, addr, vid, nlh_flags); in br_fdb_add()
1036 if (vid) { in br_fdb_add()
1037 v = br_vlan_find(vg, vid); in br_fdb_add()
1039 pr_info("bridge: RTM_NEWNEIGH with unconfigured vlan %d on %s\n", vid, dev->name); in br_fdb_add()
1043 /* VID was specified, so use it. */ in br_fdb_add()
1044 err = __br_fdb_add(ndm, br, p, addr, nlh_flags, vid, nfea_tb); in br_fdb_add()
1057 err = __br_fdb_add(ndm, br, p, addr, nlh_flags, v->vid, in br_fdb_add()
1085 const unsigned char *addr, u16 vid) in __br_fdb_delete() argument
1090 err = fdb_delete_by_addr_and_port(br, p, addr, vid); in __br_fdb_delete()
1099 const unsigned char *addr, u16 vid) in br_fdb_delete() argument
1121 if (vid) { in br_fdb_delete()
1122 v = br_vlan_find(vg, vid); in br_fdb_delete()
1124 pr_info("bridge: RTM_DELNEIGH with unconfigured vlan %d on %s\n", vid, dev->name); in br_fdb_delete()
1128 err = __br_fdb_delete(br, p, addr, vid); in br_fdb_delete()
1138 err &= __br_fdb_delete(br, p, addr, v->vid); in br_fdb_delete()
1198 const unsigned char *addr, u16 vid, in br_fdb_external_learn_add() argument
1205 trace_br_fdb_external_learn_add(br, p, addr, vid); in br_fdb_external_learn_add()
1209 fdb = br_fdb_find(br, addr, vid); in br_fdb_external_learn_add()
1215 fdb = fdb_create(br, p, addr, vid, flags); in br_fdb_external_learn_add()
1252 const unsigned char *addr, u16 vid, in br_fdb_external_learn_del() argument
1260 fdb = br_fdb_find(br, addr, vid); in br_fdb_external_learn_del()
1272 const unsigned char *addr, u16 vid, bool offloaded) in br_fdb_offloaded_set() argument
1278 fdb = br_fdb_find(br, addr, vid); in br_fdb_offloaded_set()
1285 void br_fdb_clear_offload(const struct net_device *dev, u16 vid) in br_fdb_clear_offload() argument
1298 if (f->dst == p && f->key.vlan_id == vid) in br_fdb_clear_offload()