Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_fdb.c9 struct switchdev_notifier_fdb_info fdb_info; member
25 struct switchdev_notifier_fdb_info *fdb_info) in lan966x_fdb_find_entry() argument
30 if (fdb_entry->vid == fdb_info->vid && in lan966x_fdb_find_entry()
31 ether_addr_equal(fdb_entry->mac, fdb_info->addr)) in lan966x_fdb_find_entry()
39 struct switchdev_notifier_fdb_info *fdb_info) in lan966x_fdb_add_entry() argument
43 fdb_entry = lan966x_fdb_find_entry(lan966x, fdb_info); in lan966x_fdb_add_entry()
53 ether_addr_copy(fdb_entry->mac, fdb_info->addr); in lan966x_fdb_add_entry()
54 fdb_entry->vid = fdb_info->vid; in lan966x_fdb_add_entry()
60 struct switchdev_notifier_fdb_info *fdb_info) in lan966x_fdb_del_entry() argument
66 if (fdb_entry->vid == fdb_info->vid && in lan966x_fdb_del_entry()
[all …]
Dlan966x_main.h411 const struct switchdev_notifier_fdb_info *fdb_info);
/linux-6.1.9/net/bridge/
Dbr.c156 struct switchdev_notifier_fdb_info *fdb_info; in br_switchdev_event() local
167 fdb_info = ptr; in br_switchdev_event()
168 err = br_fdb_external_learn_add(br, p, fdb_info->addr, in br_switchdev_event()
169 fdb_info->vid, false); in br_switchdev_event()
174 br_fdb_offloaded_set(br, p, fdb_info->addr, in br_switchdev_event()
175 fdb_info->vid, true); in br_switchdev_event()
178 fdb_info = ptr; in br_switchdev_event()
179 err = br_fdb_external_learn_del(br, p, fdb_info->addr, in br_switchdev_event()
180 fdb_info->vid, false); in br_switchdev_event()
185 fdb_info = ptr; in br_switchdev_event()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dbridge.c16 struct switchdev_notifier_fdb_info fdb_info; member
346 kfree(fdb_work->fdb_info.addr); in mlx5_esw_bridge_cleanup_switchdev_fdb_work()
354 struct switchdev_notifier_fdb_info *fdb_info = in mlx5_esw_bridge_switchdev_fdb_event_work() local
355 &fdb_work->fdb_info; in mlx5_esw_bridge_switchdev_fdb_event_work()
369 fdb_info); in mlx5_esw_bridge_switchdev_fdb_event_work()
372 fdb_info); in mlx5_esw_bridge_switchdev_fdb_event_work()
381 struct switchdev_notifier_fdb_info *fdb_info, in mlx5_esw_bridge_init_switchdev_fdb_work() argument
392 memcpy(&work->fdb_info, fdb_info, sizeof(work->fdb_info)); in mlx5_esw_bridge_init_switchdev_fdb_work()
399 ether_addr_copy(addr, fdb_info->addr); in mlx5_esw_bridge_init_switchdev_fdb_work()
400 work->fdb_info.addr = addr; in mlx5_esw_bridge_init_switchdev_fdb_work()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_switchdev.c17 struct switchdev_notifier_fdb_info fdb_info; member
304 struct switchdev_notifier_fdb_info *fdb_info; in sparx5_switchdev_bridge_fdb_event_work() local
320 fdb_info = &switchdev_work->fdb_info; in sparx5_switchdev_bridge_fdb_event_work()
325 if (fdb_info->vid == 0) in sparx5_switchdev_bridge_fdb_event_work()
328 vid = fdb_info->vid; in sparx5_switchdev_bridge_fdb_event_work()
334 fdb_info->addr, vid); in sparx5_switchdev_bridge_fdb_event_work()
337 fdb_info->addr, vid); in sparx5_switchdev_bridge_fdb_event_work()
340 sparx5_del_mact_entry(sparx5, fdb_info->addr, vid); in sparx5_switchdev_bridge_fdb_event_work()
345 kfree(switchdev_work->fdb_info.addr); in sparx5_switchdev_bridge_fdb_event_work()
360 struct switchdev_notifier_fdb_info *fdb_info; in sparx5_switchdev_event() local
[all …]
/linux-6.1.9/drivers/net/ethernet/ti/
Dam65-cpsw-switchdev.c20 struct switchdev_notifier_fdb_info fdb_info; member
378 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
394 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
413 kfree(switchdev_work->fdb_info.addr); in am65_cpsw_switchdev_event_work()
425 struct switchdev_notifier_fdb_info *fdb_info = ptr; in am65_cpsw_switchdev_event() local
449 memcpy(&switchdev_work->fdb_info, ptr, in am65_cpsw_switchdev_event()
450 sizeof(switchdev_work->fdb_info)); in am65_cpsw_switchdev_event()
451 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in am65_cpsw_switchdev_event()
452 if (!switchdev_work->fdb_info.addr) in am65_cpsw_switchdev_event()
454 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in am65_cpsw_switchdev_event()
[all …]
Dcpsw_switchdev.c22 struct switchdev_notifier_fdb_info fdb_info; member
388 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
404 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
423 kfree(switchdev_work->fdb_info.addr); in cpsw_switchdev_event_work()
433 struct switchdev_notifier_fdb_info *fdb_info = ptr; in cpsw_switchdev_event() local
459 memcpy(&switchdev_work->fdb_info, ptr, in cpsw_switchdev_event()
460 sizeof(switchdev_work->fdb_info)); in cpsw_switchdev_event()
461 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in cpsw_switchdev_event()
462 if (!switchdev_work->fdb_info.addr) in cpsw_switchdev_event()
464 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in cpsw_switchdev_event()
[all …]
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c24 struct switchdev_notifier_fdb_info fdb_info; member
1217 struct switchdev_notifier_fdb_info *fdb_info, in prestera_port_fdb_set() argument
1233 vid = fdb_info->vid; in prestera_port_fdb_set()
1238 err = prestera_fdb_add(port, fdb_info->addr, vid, false); in prestera_port_fdb_set()
1240 err = prestera_fdb_del(port, fdb_info->addr, vid); in prestera_port_fdb_set()
1247 struct switchdev_notifier_fdb_info *fdb_info; in prestera_fdb_event_work() local
1264 fdb_info = &swdev_work->fdb_info; in prestera_fdb_event_work()
1265 if (!fdb_info->added_by_user || fdb_info->is_local) in prestera_fdb_event_work()
1268 err = prestera_port_fdb_set(port, fdb_info, true); in prestera_fdb_event_work()
1272 prestera_fdb_offload_notify(port, fdb_info); in prestera_fdb_event_work()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.h53 struct switchdev_notifier_fdb_info *fdb_info);
56 struct switchdev_notifier_fdb_info *fdb_info);
59 struct switchdev_notifier_fdb_info *fdb_info);
Dbridge.c1711 struct switchdev_notifier_fdb_info *fdb_info) in mlx5_esw_bridge_fdb_update_used() argument
1722 entry = mlx5_esw_bridge_fdb_lookup(bridge, fdb_info->addr, fdb_info->vid); in mlx5_esw_bridge_fdb_update_used()
1726 fdb_info->addr, fdb_info->vid, vport_num); in mlx5_esw_bridge_fdb_update_used()
1735 struct switchdev_notifier_fdb_info *fdb_info) in mlx5_esw_bridge_fdb_create() argument
1746 entry = mlx5_esw_bridge_fdb_entry_init(dev, vport_num, esw_owner_vhca_id, fdb_info->addr, in mlx5_esw_bridge_fdb_create()
1747 fdb_info->vid, fdb_info->added_by_user, in mlx5_esw_bridge_fdb_create()
1764 struct switchdev_notifier_fdb_info *fdb_info) in mlx5_esw_bridge_fdb_remove() argument
1776 entry = mlx5_esw_bridge_fdb_lookup(bridge, fdb_info->addr, fdb_info->vid); in mlx5_esw_bridge_fdb_remove()
1780 fdb_info->addr, fdb_info->vid, vport_num); in mlx5_esw_bridge_fdb_remove()
/linux-6.1.9/include/net/
Dswitchdev.h284 switchdev_fdb_is_dynamically_learned(const struct switchdev_notifier_fdb_info *fdb_info) in switchdev_fdb_is_dynamically_learned() argument
286 return !fdb_info->added_by_user && !fdb_info->is_local; in switchdev_fdb_is_dynamically_learned()
329 const struct switchdev_notifier_fdb_info *fdb_info,
335 const struct switchdev_notifier_fdb_info *fdb_info));
456 const struct switchdev_notifier_fdb_info *fdb_info, in switchdev_handle_fdb_event_to_device() argument
462 const struct switchdev_notifier_fdb_info *fdb_info)) in switchdev_handle_fdb_event_to_device()
Dvxlan.h487 struct switchdev_notifier_vxlan_fdb_info *fdb_info);
496 struct switchdev_notifier_vxlan_fdb_info *fdb_info) in vxlan_fdb_find_uc() argument
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_core.c335 struct switchdev_notifier_vxlan_fdb_info *fdb_info) in vxlan_fdb_switchdev_notifier_info() argument
337 fdb_info->info.dev = vxlan->dev; in vxlan_fdb_switchdev_notifier_info()
338 fdb_info->info.extack = extack; in vxlan_fdb_switchdev_notifier_info()
339 fdb_info->remote_ip = rd->remote_ip; in vxlan_fdb_switchdev_notifier_info()
340 fdb_info->remote_port = rd->remote_port; in vxlan_fdb_switchdev_notifier_info()
341 fdb_info->remote_vni = rd->remote_vni; in vxlan_fdb_switchdev_notifier_info()
342 fdb_info->remote_ifindex = rd->remote_ifindex; in vxlan_fdb_switchdev_notifier_info()
343 memcpy(fdb_info->eth_addr, fdb->eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info()
344 fdb_info->vni = fdb->vni; in vxlan_fdb_switchdev_notifier_info()
345 fdb_info->offloaded = rd->offloaded; in vxlan_fdb_switchdev_notifier_info()
[all …]
/linux-6.1.9/net/switchdev/
Dswitchdev.c455 const struct switchdev_notifier_fdb_info *fdb_info, in __switchdev_handle_fdb_event_to_device() argument
461 const struct switchdev_notifier_fdb_info *fdb_info)) in __switchdev_handle_fdb_event_to_device()
463 const struct switchdev_notifier_info *info = &fdb_info->info; in __switchdev_handle_fdb_event_to_device()
469 return mod_cb(dev, orig_dev, event, info->ctx, fdb_info); in __switchdev_handle_fdb_event_to_device()
488 event, fdb_info, check_cb, in __switchdev_handle_fdb_event_to_device()
509 return __switchdev_handle_fdb_event_to_device(br, orig_dev, event, fdb_info, in __switchdev_handle_fdb_event_to_device()
515 const struct switchdev_notifier_fdb_info *fdb_info, in switchdev_handle_fdb_event_to_device() argument
521 const struct switchdev_notifier_fdb_info *fdb_info)) in switchdev_handle_fdb_event_to_device()
525 err = __switchdev_handle_fdb_event_to_device(dev, dev, event, fdb_info, in switchdev_handle_fdb_event_to_device()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c1761 struct switchdev_notifier_fdb_info *fdb_info, bool adding) in mlxsw_sp_port_fdb_set() argument
1764 struct net_device *orig_dev = fdb_info->info.dev; in mlxsw_sp_port_fdb_set()
1777 fdb_info->vid); in mlxsw_sp_port_fdb_set()
1787 fdb_info->addr, fid_index, vid, in mlxsw_sp_port_fdb_set()
1792 fdb_info->addr, fid_index, in mlxsw_sp_port_fdb_set()
3226 struct switchdev_notifier_fdb_info fdb_info; member
3240 struct switchdev_notifier_fdb_info *fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() local
3246 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3247 err = vxlan_fdb_find_uc(dev, fdb_info->addr, vni, &vxlan_fdb_info); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3267 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
[all …]
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c2211 struct switchdev_notifier_fdb_info fdb_info; member
2221 struct switchdev_notifier_fdb_info *fdb_info; in dpaa2_switch_event_work() local
2225 fdb_info = &switchdev_work->fdb_info; in dpaa2_switch_event_work()
2229 if (!fdb_info->added_by_user || fdb_info->is_local) in dpaa2_switch_event_work()
2231 if (is_unicast_ether_addr(fdb_info->addr)) in dpaa2_switch_event_work()
2233 fdb_info->addr); in dpaa2_switch_event_work()
2236 fdb_info->addr); in dpaa2_switch_event_work()
2239 fdb_info->offloaded = true; in dpaa2_switch_event_work()
2241 &fdb_info->info, NULL); in dpaa2_switch_event_work()
2244 if (!fdb_info->added_by_user || fdb_info->is_local) in dpaa2_switch_event_work()
[all …]
/linux-6.1.9/drivers/net/ethernet/rocker/
Drocker_main.c2698 struct switchdev_notifier_fdb_info fdb_info; member
2721 struct switchdev_notifier_fdb_info *fdb_info; in rocker_switchdev_event_work() local
2727 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2728 if (!fdb_info->added_by_user || fdb_info->is_local) in rocker_switchdev_event_work()
2730 err = rocker_world_port_fdb_add(rocker_port, fdb_info); in rocker_switchdev_event_work()
2735 rocker_fdb_offload_notify(rocker_port, fdb_info); in rocker_switchdev_event_work()
2738 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2739 if (!fdb_info->added_by_user || fdb_info->is_local) in rocker_switchdev_event_work()
2741 err = rocker_world_port_fdb_del(rocker_port, fdb_info); in rocker_switchdev_event_work()
2748 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
[all …]
/linux-6.1.9/drivers/net/ethernet/adi/
Dadin1110.c168 struct switchdev_notifier_fdb_info fdb_info; member
1439 ret = adin1110_fdb_add(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1442 &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1445 adin1110_fdb_del(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1453 kfree(switchdev_work->fdb_info.addr); in adin1110_switchdev_event_work()
1465 struct switchdev_notifier_fdb_info *fdb_info = ptr; in adin1110_switchdev_event() local
1481 memcpy(&switchdev_work->fdb_info, ptr, in adin1110_switchdev_event()
1482 sizeof(switchdev_work->fdb_info)); in adin1110_switchdev_event()
1483 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in adin1110_switchdev_event()
1485 if (!switchdev_work->fdb_info.addr) in adin1110_switchdev_event()
[all …]
/linux-6.1.9/net/dsa/
Dslave.c3312 const struct switchdev_notifier_fdb_info *fdb_info) in dsa_slave_fdb_event() argument
3316 bool host_addr = fdb_info->is_local; in dsa_slave_fdb_event()
3325 if (switchdev_fdb_is_dynamically_learned(fdb_info)) { in dsa_slave_fdb_event()
3361 orig_dev->name, fdb_info->addr, fdb_info->vid, in dsa_slave_fdb_event()
3369 ether_addr_copy(switchdev_work->addr, fdb_info->addr); in dsa_slave_fdb_event()
3370 switchdev_work->vid = fdb_info->vid; in dsa_slave_fdb_event()
/linux-6.1.9/drivers/s390/net/
Dqeth_l2_main.c853 struct switchdev_notifier_fdb_info *fdb_info; in qeth_l2_switchdev_event() local
867 fdb_info = container_of(info, in qeth_l2_switchdev_event()
878 fdb_info->addr); in qeth_l2_switchdev_event()