Home
last modified time | relevance | path

Searched refs:fdb_info (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/net/bridge/
Dbr.c153 struct switchdev_notifier_fdb_info *fdb_info; in br_switchdev_event() local
164 fdb_info = ptr; in br_switchdev_event()
165 err = br_fdb_external_learn_add(br, p, fdb_info->addr, in br_switchdev_event()
166 fdb_info->vid, false); in br_switchdev_event()
171 br_fdb_offloaded_set(br, p, fdb_info->addr, in br_switchdev_event()
172 fdb_info->vid, true); in br_switchdev_event()
175 fdb_info = ptr; in br_switchdev_event()
176 err = br_fdb_external_learn_del(br, p, fdb_info->addr, in br_switchdev_event()
177 fdb_info->vid, false); in br_switchdev_event()
182 fdb_info = ptr; in br_switchdev_event()
[all …]
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c24 struct switchdev_notifier_fdb_info fdb_info; member
768 struct switchdev_notifier_fdb_info *fdb_info, in prestera_port_fdb_set() argument
784 vid = fdb_info->vid; in prestera_port_fdb_set()
789 err = prestera_hw_fdb_add(port, fdb_info->addr, vid, false); in prestera_port_fdb_set()
791 err = prestera_hw_fdb_del(port, fdb_info->addr, vid); in prestera_port_fdb_set()
798 struct switchdev_notifier_fdb_info *fdb_info; in prestera_fdb_event_work() local
815 fdb_info = &swdev_work->fdb_info; in prestera_fdb_event_work()
816 if (!fdb_info->added_by_user) in prestera_fdb_event_work()
819 err = prestera_port_fdb_set(port, fdb_info, true); in prestera_fdb_event_work()
823 prestera_fdb_offload_notify(port, fdb_info); in prestera_fdb_event_work()
[all …]
/Linux-v5.10/drivers/net/ethernet/ti/
Dcpsw_switchdev.c22 struct switchdev_notifier_fdb_info fdb_info; member
433 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
449 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
468 kfree(switchdev_work->fdb_info.addr); in cpsw_switchdev_event_work()
478 struct switchdev_notifier_fdb_info *fdb_info = ptr; in cpsw_switchdev_event() local
504 memcpy(&switchdev_work->fdb_info, ptr, in cpsw_switchdev_event()
505 sizeof(switchdev_work->fdb_info)); in cpsw_switchdev_event()
506 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in cpsw_switchdev_event()
507 if (!switchdev_work->fdb_info.addr) in cpsw_switchdev_event()
509 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in cpsw_switchdev_event()
[all …]
/Linux-v5.10/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c1298 struct switchdev_notifier_fdb_info fdb_info; member
1308 struct switchdev_notifier_fdb_info *fdb_info; in dpaa2_switch_event_work() local
1312 fdb_info = &switchdev_work->fdb_info; in dpaa2_switch_event_work()
1316 if (!fdb_info->added_by_user) in dpaa2_switch_event_work()
1318 if (is_unicast_ether_addr(fdb_info->addr)) in dpaa2_switch_event_work()
1320 fdb_info->addr); in dpaa2_switch_event_work()
1323 fdb_info->addr); in dpaa2_switch_event_work()
1326 fdb_info->offloaded = true; in dpaa2_switch_event_work()
1328 &fdb_info->info, NULL); in dpaa2_switch_event_work()
1331 if (!fdb_info->added_by_user) in dpaa2_switch_event_work()
[all …]
/Linux-v5.10/drivers/net/
Dvxlan.c394 struct switchdev_notifier_vxlan_fdb_info *fdb_info) in vxlan_fdb_switchdev_notifier_info() argument
396 fdb_info->info.dev = vxlan->dev; in vxlan_fdb_switchdev_notifier_info()
397 fdb_info->info.extack = extack; in vxlan_fdb_switchdev_notifier_info()
398 fdb_info->remote_ip = rd->remote_ip; in vxlan_fdb_switchdev_notifier_info()
399 fdb_info->remote_port = rd->remote_port; in vxlan_fdb_switchdev_notifier_info()
400 fdb_info->remote_vni = rd->remote_vni; in vxlan_fdb_switchdev_notifier_info()
401 fdb_info->remote_ifindex = rd->remote_ifindex; in vxlan_fdb_switchdev_notifier_info()
402 memcpy(fdb_info->eth_addr, fdb->eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info()
403 fdb_info->vni = fdb->vni; in vxlan_fdb_switchdev_notifier_info()
404 fdb_info->offloaded = rd->offloaded; in vxlan_fdb_switchdev_notifier_info()
[all …]
/Linux-v5.10/net/dsa/
Dslave.c2010 struct switchdev_notifier_fdb_info fdb_info; member
2020 struct switchdev_notifier_fdb_info *fdb_info; in dsa_slave_switchdev_event_work() local
2027 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
2028 if (!fdb_info->added_by_user) in dsa_slave_switchdev_event_work()
2031 err = dsa_port_fdb_add(dp, fdb_info->addr, fdb_info->vid); in dsa_slave_switchdev_event_work()
2036 fdb_info->offloaded = true; in dsa_slave_switchdev_event_work()
2038 &fdb_info->info, NULL); in dsa_slave_switchdev_event_work()
2042 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
2043 if (!fdb_info->added_by_user) in dsa_slave_switchdev_event_work()
2046 err = dsa_port_fdb_del(dp, fdb_info->addr, fdb_info->vid); in dsa_slave_switchdev_event_work()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c1408 struct switchdev_notifier_fdb_info *fdb_info, bool adding) in mlxsw_sp_port_fdb_set() argument
1411 struct net_device *orig_dev = fdb_info->info.dev; in mlxsw_sp_port_fdb_set()
1424 fdb_info->vid); in mlxsw_sp_port_fdb_set()
1434 fdb_info->addr, fid_index, in mlxsw_sp_port_fdb_set()
1439 fdb_info->addr, fid_index, in mlxsw_sp_port_fdb_set()
2736 struct switchdev_notifier_fdb_info fdb_info; member
2750 struct switchdev_notifier_fdb_info *fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() local
2756 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2757 err = vxlan_fdb_find_uc(dev, fdb_info->addr, vni, &vxlan_fdb_info); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2777 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
[all …]
/Linux-v5.10/drivers/net/ethernet/rocker/
Drocker_main.c2737 struct switchdev_notifier_fdb_info fdb_info; member
2760 struct switchdev_notifier_fdb_info *fdb_info; in rocker_switchdev_event_work() local
2766 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2767 if (!fdb_info->added_by_user) in rocker_switchdev_event_work()
2769 err = rocker_world_port_fdb_add(rocker_port, fdb_info); in rocker_switchdev_event_work()
2774 rocker_fdb_offload_notify(rocker_port, fdb_info); in rocker_switchdev_event_work()
2777 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2778 if (!fdb_info->added_by_user) in rocker_switchdev_event_work()
2780 err = rocker_world_port_fdb_del(rocker_port, fdb_info); in rocker_switchdev_event_work()
2787 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
[all …]
/Linux-v5.10/include/net/
Dvxlan.h436 struct switchdev_notifier_vxlan_fdb_info *fdb_info);
445 struct switchdev_notifier_vxlan_fdb_info *fdb_info) in vxlan_fdb_find_uc() argument