net/mlx5e: Add ndo_udp_tunnel_add to VF representors
authorHadar Hen Zion <hadarh@mellanox.com>
Mon, 7 Nov 2016 13:14:47 +0000 (15:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 18:41:56 +0000 (13:41 -0500)
commit4a25730eb202893cd79b885df8f6fa1e8174742f
tree9448721fd36138704aa12158d169d931c66952c9
parentbbd00f7e2349e53345d0a151c04c8cb7e10bf2e7
net/mlx5e: Add ndo_udp_tunnel_add to VF representors

By implementing this ndo, the host stack will set the vxlan udp port
also to VF representor netdevices. This will allow the TC offload code
in the driver when it gets a tunnel key set action to identify the UDP
port as vxlan, and hence the rule will be a candidate for offloading.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c