Lines Matching refs:fdb
426 struct switchdev_notifier_fdb_info *fdb; in cpsw_switchdev_event_work() local
433 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
436 fdb->addr, fdb->vid, fdb->added_by_user, in cpsw_switchdev_event_work()
437 fdb->offloaded, port); in cpsw_switchdev_event_work()
439 if (!fdb->added_by_user) in cpsw_switchdev_event_work()
441 if (memcmp(priv->mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0) in cpsw_switchdev_event_work()
444 cpsw_ale_add_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
445 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work()
446 cpsw_fdb_offload_notify(priv->ndev, fdb); in cpsw_switchdev_event_work()
449 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
452 fdb->addr, fdb->vid, fdb->added_by_user, in cpsw_switchdev_event_work()
453 fdb->offloaded, port); in cpsw_switchdev_event_work()
455 if (!fdb->added_by_user) in cpsw_switchdev_event_work()
457 if (memcmp(priv->mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0) in cpsw_switchdev_event_work()
460 cpsw_ale_del_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
461 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work()