]> git.baikalelectronics.ru Git - kernel.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)
commita74806cdeea863b6d130e710fc7a032d4fe775f0
tree17499564d395c88f9b2cb202942cad8438f34f18
parent7653b35671ee9184d863507135966772767709ad
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: ead57688fb76 ('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