Lines Matching refs:fdb_info
17 struct switchdev_notifier_fdb_info fdb_info; member
228 struct switchdev_notifier_fdb_info *fdb_info; in sparx5_switchdev_bridge_fdb_event_work() local
239 fdb_info = &switchdev_work->fdb_info; in sparx5_switchdev_bridge_fdb_event_work()
243 if (!fdb_info->added_by_user) in sparx5_switchdev_bridge_fdb_event_work()
245 sparx5_add_mact_entry(sparx5, port, fdb_info->addr, in sparx5_switchdev_bridge_fdb_event_work()
246 fdb_info->vid); in sparx5_switchdev_bridge_fdb_event_work()
249 if (!fdb_info->added_by_user) in sparx5_switchdev_bridge_fdb_event_work()
251 sparx5_del_mact_entry(sparx5, fdb_info->addr, fdb_info->vid); in sparx5_switchdev_bridge_fdb_event_work()
257 kfree(switchdev_work->fdb_info.addr); in sparx5_switchdev_bridge_fdb_event_work()
272 struct switchdev_notifier_fdb_info *fdb_info; in sparx5_switchdev_event() local
292 fdb_info = container_of(info, in sparx5_switchdev_event()
297 memcpy(&switchdev_work->fdb_info, ptr, in sparx5_switchdev_event()
298 sizeof(switchdev_work->fdb_info)); in sparx5_switchdev_event()
299 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in sparx5_switchdev_event()
300 if (!switchdev_work->fdb_info.addr) in sparx5_switchdev_event()
303 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in sparx5_switchdev_event()
304 fdb_info->addr); in sparx5_switchdev_event()