]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add netif_is_gretap()/netif_is_ip6gretap()
authorOz Shlomo <ozsh@mellanox.com>
Wed, 21 Nov 2018 10:15:34 +0000 (12:15 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 10 Dec 2018 23:53:04 +0000 (15:53 -0800)
commit3e09b9abbc2a054e25bc16d42bd59620a8ed7785
tree2e7ef3483d675a9511d956a1f1d41ab6c9fc5ad4
parent3742f939d4afa8ecd8a036301d1a680eea676a4b
net: Add netif_is_gretap()/netif_is_ip6gretap()

Changed the is_gretap_dev and is_ip6gretap_dev logic from structure
comparison to string comparison of the rtnl_link_ops kind field.

This approach aligns with the current identification methods and function
names of vxlan and geneve network devices.

Convert mlxsw to use these helpers and use them in downstream mlx5 patch.

Signed-off-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
include/net/gre.h
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c