Lines Matching refs:vid
217 __u16 vid) in fdb_find_rcu() argument
223 key.vlan_id = vid; in fdb_find_rcu()
232 __u16 vid) in br_fdb_find() argument
239 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find()
247 __u16 vid) in br_fdb_find_port() argument
260 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port()
271 __u16 vid) in br_fdb_find_rcu() argument
273 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu()
345 u16 vid = f->key.vlan_id; in fdb_delete_local() local
351 (!vid || br_vlan_find(vg, vid))) { in fdb_delete_local()
359 v = br_vlan_find(vg, vid); in fdb_delete_local()
362 (!vid || (v && br_vlan_should_use(v)))) { in fdb_delete_local()
373 const unsigned char *addr, u16 vid) in br_fdb_find_delete_local() argument
378 f = br_fdb_find(br, addr, vid); in br_fdb_find_delete_local()
388 __u16 vid, in fdb_create() argument
400 fdb->key.vlan_id = vid; in fdb_create()
416 const unsigned char *addr, u16 vid) in fdb_add_local() argument
423 fdb = br_fdb_find(br, addr, vid); in fdb_add_local()
431 source ? source->dev->name : br->dev->name, addr, vid); in fdb_add_local()
435 fdb = fdb_create(br, source, addr, vid, in fdb_add_local()
481 fdb_add_local(br, p, newaddr, v->vid); in br_fdb_changeaddr()
512 f = br_fdb_find(br, br->dev->dev_addr, v->vid); in br_fdb_change_mac_address()
516 fdb_add_local(br, NULL, newaddr, v->vid); in br_fdb_change_mac_address()
665 struct net_device *dev, u16 vid, in br_fdb_delete_bulk() argument
669 struct net_bridge_fdb_flush_desc desc = { .vlan_id = vid }; in br_fdb_delete_bulk()
731 u16 vid, in br_fdb_delete_by_port() argument
746 (vid && f->key.vlan_id != vid)) in br_fdb_delete_by_port()
836 const unsigned char *addr, u16 vid) in br_fdb_add_local() argument
841 ret = fdb_add_local(br, source, addr, vid); in br_fdb_add_local()
854 const unsigned char *addr, u16 vid, unsigned long flags) in br_fdb_update() argument
862 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_update()
868 source->dev->name, addr, vid); in br_fdb_update()
899 trace_br_fdb_update(br, source, addr, vid, flags); in br_fdb_update()
905 fdb = fdb_create(br, source, addr, vid, flags); in br_fdb_update()
907 trace_br_fdb_update(br, source, addr, vid, flags); in br_fdb_update()
974 u16 vid, u32 portid, u32 seq, in br_fdb_get() argument
982 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_get()
1022 const u8 *addr, struct ndmsg *ndm, u16 flags, u16 vid, in fdb_add_entry() argument
1054 fdb = br_fdb_find(br, addr, vid); in fdb_add_entry()
1059 fdb = fdb_create(br, source, addr, vid, 0); in fdb_add_entry()
1117 u16 nlh_flags, u16 vid, struct nlattr *nfea_tb[], in __br_fdb_add() argument
1133 br_fdb_update(br, p, addr, vid, BIT(BR_FDB_ADDED_BY_USER)); in __br_fdb_add()
1142 err = br_fdb_external_learn_add(br, p, addr, vid, false, true); in __br_fdb_add()
1145 err = fdb_add_entry(br, p, addr, ndm, nlh_flags, vid, nfea_tb); in __br_fdb_add()
1160 const unsigned char *addr, u16 vid, u16 nlh_flags, in br_fdb_add() argument
1171 trace_br_fdb_add(ndm, dev, addr, vid, nlh_flags); in br_fdb_add()
1215 if (vid) { in br_fdb_add()
1216 v = br_vlan_find(vg, vid); in br_fdb_add()
1218 pr_info("bridge: RTM_NEWNEIGH with unconfigured vlan %d on %s\n", vid, dev->name); in br_fdb_add()
1223 err = __br_fdb_add(ndm, br, p, addr, nlh_flags, vid, nfea_tb, in br_fdb_add()
1238 err = __br_fdb_add(ndm, br, p, addr, nlh_flags, v->vid, in br_fdb_add()
1266 const unsigned char *addr, u16 vid) in __br_fdb_delete() argument
1271 err = fdb_delete_by_addr_and_port(br, p, addr, vid); in __br_fdb_delete()
1280 const unsigned char *addr, u16 vid, in br_fdb_delete() argument
1303 if (vid) { in br_fdb_delete()
1304 v = br_vlan_find(vg, vid); in br_fdb_delete()
1306 pr_info("bridge: RTM_DELNEIGH with unconfigured vlan %d on %s\n", vid, dev->name); in br_fdb_delete()
1310 err = __br_fdb_delete(br, p, addr, vid); in br_fdb_delete()
1320 err &= __br_fdb_delete(br, p, addr, v->vid); in br_fdb_delete()
1380 const unsigned char *addr, u16 vid, bool locked, in br_fdb_external_learn_add() argument
1387 trace_br_fdb_external_learn_add(br, p, addr, vid); in br_fdb_external_learn_add()
1394 fdb = br_fdb_find(br, addr, vid); in br_fdb_external_learn_add()
1407 fdb = fdb_create(br, p, addr, vid, flags); in br_fdb_external_learn_add()
1457 const unsigned char *addr, u16 vid, in br_fdb_external_learn_del() argument
1465 fdb = br_fdb_find(br, addr, vid); in br_fdb_external_learn_del()
1477 const unsigned char *addr, u16 vid, bool offloaded) in br_fdb_offloaded_set() argument
1483 fdb = br_fdb_find(br, addr, vid); in br_fdb_offloaded_set()
1490 void br_fdb_clear_offload(const struct net_device *dev, u16 vid) in br_fdb_clear_offload() argument
1503 if (f->dst == p && f->key.vlan_id == vid) in br_fdb_clear_offload()