]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:22:08 +0000 (08:22 +0200)
commitb0034cb5014e7c7d64389c52ee58180101c8ac29
tree074bfe1ea511414302bde5b5b87538430651ff40
parent53c5525785bc831f50c4eed741f4e7f6413d0057
net/mlx5e: Properly resolve TC offloaded ipv6 vxlan tunnel source address

[ Upstream commit 08820528c9d3ff0d0eda047d7ef5ecac2da1ef6c ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c