]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/mlx5e: Properly resolve TC offloaded ipv6 vxlan tunnel source address
authorPaul Blakey <paulb@mellanox.com>
Tue, 22 Aug 2017 10:51:56 +0000 (13:51 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 Aug 2017 18:20:43 +0000 (21:20 +0300)
commit08820528c9d3ff0d0eda047d7ef5ecac2da1ef6c
tree17499564d395c88f9b2cb202942cad8438f34f18
parent5a8e12678c767ccf8bb16d6237569e4a707d655b
net/mlx5e: Properly resolve TC offloaded ipv6 vxlan tunnel source address

Currently if vxlan tunnel ipv6 src isn't supplied the driver fails to
resolve it as part of the route lookup. The resulting encap header
is left with a zeroed out ipv6 src address so the packets are sent
with this src ip.

Use an appropriate route lookup API that also resolves the source
ipv6 address if it's not supplied.

Fixes: ce99f6b97fcd ('net/mlx5e: Support SRIOV TC encapsulation offloads for IPv6 tunnels')
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c