Lines Matching refs:fdb_info
1316 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()
2315 fdb_info->addr, in mlxsw_sp_switchdev_event_work()
2316 fdb_info->vid, dev); in mlxsw_sp_switchdev_event_work()
2319 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_event_work()
2320 if (!fdb_info->added_by_user) in mlxsw_sp_switchdev_event_work()
2322 mlxsw_sp_port_fdb_set(mlxsw_sp_port, fdb_info, false); in mlxsw_sp_switchdev_event_work()
2336 kfree(switchdev_work->fdb_info.addr); in mlxsw_sp_switchdev_event_work()
2347 struct switchdev_notifier_fdb_info *fdb_info = ptr; in mlxsw_sp_switchdev_event() local
2365 memcpy(&switchdev_work->fdb_info, ptr, in mlxsw_sp_switchdev_event()
2366 sizeof(switchdev_work->fdb_info)); in mlxsw_sp_switchdev_event()
2367 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in mlxsw_sp_switchdev_event()
2368 if (!switchdev_work->fdb_info.addr) in mlxsw_sp_switchdev_event()
2370 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in mlxsw_sp_switchdev_event()
2371 fdb_info->addr); in mlxsw_sp_switchdev_event()