net/mlx5: Fix rtable reference leak
authorParav Pandit <parav@mellanox.com>
Thu, 19 Sep 2019 20:58:14 +0000 (15:58 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:19 +0000 (16:27 -0700)
commit2347cee83b2bd868bde2d283db0fac89f22be4e0
tree902c00e849e795e649a7be4b950cfd8f4a799a50
parent64d7b68577130ae00f954a28ea9d6bc51025caf9
net/mlx5: Fix rtable reference leak

If the rt entry gateway family is not AF_INET for multipath device,
rtable reference is leaked.
Hence, fix it by releasing the reference.

Fixes: 5fb091e8130b ("net/mlx5e: Use hint to resolve route when in HW multipath mode")
Fixes: e32ee6c78efa ("net/mlx5e: Support tunnel encap over tagged Ethernet")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c