]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add netif_is_vxlan()
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Oct 2018 08:53:20 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 00:45:07 +0000 (17:45 -0700)
commitc30990eca3f4c043f8c91a6d88591d476d72618b
treea976cdb5ed71184295f6a4d34e219a9fdaee3bfd
parent84de8e47cfa273ec3c8f5f7d01ea122f64ab6295
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>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c
include/net/vxlan.h