net/mlx5e: Fix error flow cleanup in mlx5e_tc_tun_create_header_ipv4/6
authorEli Cohen <eli@mellanox.com>
Thu, 31 Oct 2019 07:00:43 +0000 (09:00 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:04 +0000 (12:33 -0800)
commita86db2269fca8019074b720baf2e0a35cddac4e9
tree4c367fc977b09b2cee59f16029ea13db322d2e9a
parent6e4ff1c94a0477598ddbe4da47530aecdb4f7dff
net/mlx5e: Fix error flow cleanup in mlx5e_tc_tun_create_header_ipv4/6

Be sure to release the neighbour in case of failures after successful
route lookup.

Fixes: 101f4de9dd52 ("net/mlx5e: Move TC tunnel offloading code to separate source file")
Signed-off-by: Eli Cohen <eli@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_tun.c