Searched refs:fdb_info (Results 1 – 6 of 6) sorted by relevance
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_switchdev.c | 24 struct switchdev_notifier_fdb_info fdb_info; member 766 struct switchdev_notifier_fdb_info *fdb_info, in prestera_port_fdb_set() argument 782 vid = fdb_info->vid; in prestera_port_fdb_set() 787 err = prestera_hw_fdb_add(port, fdb_info->addr, vid, false); in prestera_port_fdb_set() 789 err = prestera_hw_fdb_del(port, fdb_info->addr, vid); in prestera_port_fdb_set() 796 struct switchdev_notifier_fdb_info *fdb_info; in prestera_fdb_event_work() local 813 fdb_info = &swdev_work->fdb_info; in prestera_fdb_event_work() 814 if (!fdb_info->added_by_user) in prestera_fdb_event_work() 817 err = prestera_port_fdb_set(port, fdb_info, true); in prestera_fdb_event_work() 821 prestera_fdb_offload_notify(port, fdb_info); in prestera_fdb_event_work() [all …]
|
/drivers/net/ethernet/ti/ |
D | cpsw_switchdev.c | 22 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 …]
|
/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw.c | 1298 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 …]
|
/drivers/net/vxlan/ |
D | vxlan_core.c | 394 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 …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 1408 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() 2737 struct switchdev_notifier_fdb_info fdb_info; member 2751 struct switchdev_notifier_fdb_info *fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() local 2757 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2758 err = vxlan_fdb_find_uc(dev, fdb_info->addr, vni, &vxlan_fdb_info); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2778 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() [all …]
|
/drivers/net/ethernet/rocker/ |
D | rocker_main.c | 2737 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 …]
|