Lines Matching refs:fdb
371 struct switchdev_notifier_fdb_info *fdb; in am65_cpsw_switchdev_event_work() local
378 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
381 fdb->addr, fdb->vid, fdb->added_by_user, in am65_cpsw_switchdev_event_work()
382 fdb->offloaded, port_id); in am65_cpsw_switchdev_event_work()
384 if (!fdb->added_by_user || fdb->is_local) in am65_cpsw_switchdev_event_work()
386 if (memcmp(port->slave.mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0) in am65_cpsw_switchdev_event_work()
389 cpsw_ale_add_ucast(cpsw->ale, (u8 *)fdb->addr, port_id, in am65_cpsw_switchdev_event_work()
390 fdb->vid ? ALE_VLAN : 0, fdb->vid); in am65_cpsw_switchdev_event_work()
391 am65_cpsw_fdb_offload_notify(port->ndev, fdb); in am65_cpsw_switchdev_event_work()
394 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
397 fdb->addr, fdb->vid, fdb->added_by_user, in am65_cpsw_switchdev_event_work()
398 fdb->offloaded, port_id); in am65_cpsw_switchdev_event_work()
400 if (!fdb->added_by_user || fdb->is_local) in am65_cpsw_switchdev_event_work()
402 if (memcmp(port->slave.mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0) in am65_cpsw_switchdev_event_work()
405 cpsw_ale_del_ucast(cpsw->ale, (u8 *)fdb->addr, port_id, in am65_cpsw_switchdev_event_work()
406 fdb->vid ? ALE_VLAN : 0, fdb->vid); in am65_cpsw_switchdev_event_work()