Home
last modified time | relevance | path

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

/Linux-v5.4/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.4/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c1183 struct switchdev_notifier_fdb_info fdb_info; member
1193 struct switchdev_notifier_fdb_info *fdb_info; in ethsw_switchdev_event_work() local
1197 fdb_info = &switchdev_work->fdb_info; in ethsw_switchdev_event_work()
1201 if (!fdb_info->added_by_user) in ethsw_switchdev_event_work()
1203 if (is_unicast_ether_addr(fdb_info->addr)) in ethsw_switchdev_event_work()
1205 fdb_info->addr); in ethsw_switchdev_event_work()
1208 fdb_info->addr); in ethsw_switchdev_event_work()
1211 fdb_info->offloaded = true; in ethsw_switchdev_event_work()
1213 &fdb_info->info, NULL); in ethsw_switchdev_event_work()
1216 if (!fdb_info->added_by_user) in ethsw_switchdev_event_work()
[all …]
/Linux-v5.4/net/dsa/
Dslave.c1565 struct switchdev_notifier_fdb_info fdb_info; member
1575 struct switchdev_notifier_fdb_info *fdb_info; in dsa_slave_switchdev_event_work() local
1582 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1583 if (!fdb_info->added_by_user) in dsa_slave_switchdev_event_work()
1586 err = dsa_port_fdb_add(dp, fdb_info->addr, fdb_info->vid); in dsa_slave_switchdev_event_work()
1591 fdb_info->offloaded = true; in dsa_slave_switchdev_event_work()
1593 &fdb_info->info, NULL); in dsa_slave_switchdev_event_work()
1597 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1598 if (!fdb_info->added_by_user) in dsa_slave_switchdev_event_work()
1601 err = dsa_port_fdb_del(dp, fdb_info->addr, fdb_info->vid); in dsa_slave_switchdev_event_work()
[all …]
/Linux-v5.4/drivers/net/
Dvxlan.c363 struct switchdev_notifier_vxlan_fdb_info *fdb_info) in vxlan_fdb_switchdev_notifier_info() argument
365 fdb_info->info.dev = vxlan->dev; in vxlan_fdb_switchdev_notifier_info()
366 fdb_info->info.extack = extack; in vxlan_fdb_switchdev_notifier_info()
367 fdb_info->remote_ip = rd->remote_ip; in vxlan_fdb_switchdev_notifier_info()
368 fdb_info->remote_port = rd->remote_port; in vxlan_fdb_switchdev_notifier_info()
369 fdb_info->remote_vni = rd->remote_vni; in vxlan_fdb_switchdev_notifier_info()
370 fdb_info->remote_ifindex = rd->remote_ifindex; in vxlan_fdb_switchdev_notifier_info()
371 memcpy(fdb_info->eth_addr, fdb->eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info()
372 fdb_info->vni = fdb->vni; in vxlan_fdb_switchdev_notifier_info()
373 fdb_info->offloaded = rd->offloaded; in vxlan_fdb_switchdev_notifier_info()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c1342 struct switchdev_notifier_fdb_info *fdb_info, bool adding) in mlxsw_sp_port_fdb_set() argument
1345 struct net_device *orig_dev = fdb_info->info.dev; in mlxsw_sp_port_fdb_set()
1358 fdb_info->vid); in mlxsw_sp_port_fdb_set()
1368 fdb_info->addr, fid_index, in mlxsw_sp_port_fdb_set()
1373 fdb_info->addr, fid_index, in mlxsw_sp_port_fdb_set()
2765 struct switchdev_notifier_fdb_info fdb_info; member
2779 struct switchdev_notifier_fdb_info *fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() local
2785 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2786 err = vxlan_fdb_find_uc(dev, fdb_info->addr, vni, &vxlan_fdb_info); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2806 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
[all …]
/Linux-v5.4/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.4/include/net/
Dvxlan.h432 struct switchdev_notifier_vxlan_fdb_info *fdb_info);
441 struct switchdev_notifier_vxlan_fdb_info *fdb_info) in vxlan_fdb_find_uc() argument