Home
last modified time | relevance | path

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

/Linux-v4.19/net/bridge/
Dbr.c135 struct switchdev_notifier_fdb_info *fdb_info; in br_switchdev_event() local
146 fdb_info = ptr; in br_switchdev_event()
147 err = br_fdb_external_learn_add(br, p, fdb_info->addr, in br_switchdev_event()
148 fdb_info->vid, false); in br_switchdev_event()
153 br_fdb_offloaded_set(br, p, fdb_info->addr, in br_switchdev_event()
154 fdb_info->vid); in br_switchdev_event()
157 fdb_info = ptr; in br_switchdev_event()
158 err = br_fdb_external_learn_del(br, p, fdb_info->addr, in br_switchdev_event()
159 fdb_info->vid, false); in br_switchdev_event()
164 fdb_info = ptr; in br_switchdev_event()
[all …]
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c1006 struct switchdev_notifier_fdb_info fdb_info; member
1016 struct switchdev_notifier_fdb_info *fdb_info; in ethsw_switchdev_event_work() local
1021 fdb_info = &switchdev_work->fdb_info; in ethsw_switchdev_event_work()
1025 if (is_unicast_ether_addr(fdb_info->addr)) in ethsw_switchdev_event_work()
1026 ethsw_port_fdb_add_uc(netdev_priv(dev), fdb_info->addr); in ethsw_switchdev_event_work()
1028 ethsw_port_fdb_add_mc(netdev_priv(dev), fdb_info->addr); in ethsw_switchdev_event_work()
1031 if (is_unicast_ether_addr(fdb_info->addr)) in ethsw_switchdev_event_work()
1032 ethsw_port_fdb_del_uc(netdev_priv(dev), fdb_info->addr); in ethsw_switchdev_event_work()
1034 ethsw_port_fdb_del_mc(netdev_priv(dev), fdb_info->addr); in ethsw_switchdev_event_work()
1039 kfree(switchdev_work->fdb_info.addr); in ethsw_switchdev_event_work()
[all …]
/Linux-v4.19/net/dsa/
Dslave.c1427 struct switchdev_notifier_fdb_info fdb_info; member
1437 struct switchdev_notifier_fdb_info *fdb_info; in dsa_slave_switchdev_event_work() local
1444 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1445 if (!fdb_info->added_by_user) in dsa_slave_switchdev_event_work()
1448 err = dsa_port_fdb_add(dp, fdb_info->addr, fdb_info->vid); in dsa_slave_switchdev_event_work()
1454 &fdb_info->info); in dsa_slave_switchdev_event_work()
1458 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1459 if (!fdb_info->added_by_user) in dsa_slave_switchdev_event_work()
1462 err = dsa_port_fdb_del(dp, fdb_info->addr, fdb_info->vid); in dsa_slave_switchdev_event_work()
1471 kfree(switchdev_work->fdb_info.addr); in dsa_slave_switchdev_event_work()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c1316 struct switchdev_notifier_fdb_info *fdb_info, bool adding) in mlxsw_sp_port_fdb_set() argument
1319 struct net_device *orig_dev = fdb_info->info.dev; in mlxsw_sp_port_fdb_set()
1332 fdb_info->vid); in mlxsw_sp_port_fdb_set()
1342 fdb_info->addr, fid_index, in mlxsw_sp_port_fdb_set()
1347 fdb_info->addr, fid_index, in mlxsw_sp_port_fdb_set()
2287 struct switchdev_notifier_fdb_info fdb_info; member
2297 struct switchdev_notifier_fdb_info *fdb_info; in mlxsw_sp_switchdev_event_work() local
2308 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_event_work()
2309 if (!fdb_info->added_by_user) in mlxsw_sp_switchdev_event_work()
2311 err = mlxsw_sp_port_fdb_set(mlxsw_sp_port, fdb_info, true); in mlxsw_sp_switchdev_event_work()
[all …]
/Linux-v4.19/drivers/net/ethernet/rocker/
Drocker_main.c2718 struct switchdev_notifier_fdb_info fdb_info; member
2740 struct switchdev_notifier_fdb_info *fdb_info; in rocker_switchdev_event_work() local
2746 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2747 if (!fdb_info->added_by_user) in rocker_switchdev_event_work()
2749 err = rocker_world_port_fdb_add(rocker_port, fdb_info); in rocker_switchdev_event_work()
2754 rocker_fdb_offload_notify(rocker_port, fdb_info); in rocker_switchdev_event_work()
2757 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2758 if (!fdb_info->added_by_user) in rocker_switchdev_event_work()
2760 err = rocker_world_port_fdb_del(rocker_port, fdb_info); in rocker_switchdev_event_work()
2767 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
[all …]