Lines Matching refs:fdb_info
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()
825 fdb_info = &swdev_work->fdb_info; in prestera_fdb_event_work()
826 prestera_port_fdb_set(port, fdb_info, false); in prestera_fdb_event_work()
833 kfree(swdev_work->fdb_info.addr); in prestera_fdb_event_work()
842 struct switchdev_notifier_fdb_info *fdb_info; in prestera_switchdev_event() local
875 fdb_info = container_of(info, in prestera_switchdev_event()
880 memcpy(&swdev_work->fdb_info, ptr, in prestera_switchdev_event()
881 sizeof(swdev_work->fdb_info)); in prestera_switchdev_event()
883 swdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in prestera_switchdev_event()
884 if (!swdev_work->fdb_info.addr) in prestera_switchdev_event()
887 ether_addr_copy((u8 *)swdev_work->fdb_info.addr, in prestera_switchdev_event()
888 fdb_info->addr); in prestera_switchdev_event()