summaryrefslogtreecommitdiffstats
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2018-10-17 10:53:20 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-18 02:45:07 +0200
commit5ff4ff4fe8c4e7d0de1d837e489056f0c470667b (patch)
treea976cdb5ed71184295f6a4d34e219a9fdaee3bfd /include/net/switchdev.h
parentmlxsw: spectrum_router: Configure matching local routes for NVE decap (diff)
downloadlinux-5ff4ff4fe8c4e7d0de1d837e489056f0c470667b.tar.xz
linux-5ff4ff4fe8c4e7d0de1d837e489056f0c470667b.zip
net: Add netif_is_vxlan()
Add the ability to determine whether a netdev is a VxLAN netdev by calling the above mentioned function that checks the netdev's rtnl_link_ops. This will allow modules to identify netdev events involving a VxLAN netdev and act accordingly. For example, drivers capable of VxLAN offload will need to configure the underlying device when a VxLAN netdev is being enslaved to an offloaded bridge. Convert nfp to use the newly introduced helper. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Petr Machata <petrm@mellanox.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/switchdev.h')
0 files changed, 0 insertions, 0 deletions