aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/flower/main.h
diff options
context:
space:
mode:
authorJohn Hurley <john.hurley@netronome.com>2019-01-15 19:06:56 -0800
committerDavid S. Miller <davem@davemloft.net>2019-01-16 15:23:15 -0800
commit49402b0b7ff706eba22cb67fe7e2dff9f04ce255 (patch)
treecede19660d7822b6f6f87efd87f2f4a216520699 /drivers/net/ethernet/netronome/nfp/flower/main.h
parentnfp: flower: remove list infastructure from MAC offload (diff)
downloadlinux-dev-49402b0b7ff706eba22cb67fe7e2dff9f04ce255.tar.xz
linux-dev-49402b0b7ff706eba22cb67fe7e2dff9f04ce255.zip
nfp: flower: ensure deletion of old offloaded MACs
When a potential tunnel end point goes down then its MAC address should not be matchable on the NFP. Implement a delete message for offloaded MACs and call this on net device down. While at it, remove the actions on register and unregister netdev events. A MAC should only be offloaded if the device is up. Note that the netdev notifier will replay any notifications for UP devices on registration so NFP can still offload ports that exist before the driver is loaded. Similarly, devices need to go down before they can be unregistered so removal of offloaded MACs is only required on down events. Signed-off-by: John Hurley <john.hurley@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower/main.h')
0 files changed, 0 insertions, 0 deletions