net/mlx5e: Release skb in case of failure in tc update skb
authorMaor Dickman <maord@nvidia.com>
Sun, 31 Jan 2021 16:47:15 +0000 (18:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:14 +0000 (09:29 +0100)
commit6a5c3bac805461acaf3cf33fcaa695377155b603
tree37c40fc6126e86dd71c3eba501d88ee9c9dc81e8
parentc2b2c4d24b40f5981a345fdd40691154ac5b33ac
net/mlx5e: Release skb in case of failure in tc update skb

[ Upstream commit a34ffec8af8ff1c730697a99e09ec7b74a3423b6 ]

In case of failure in tc update skb the packet is dropped
without freeing the skb.

Fixed by freeing the skb in case failure in tc update skb.

Fixes: d6d27782864f ("net/mlx5: E-Switch, Restore chain id on miss")
Fixes: c75690972228 ("net/mlx5e: Add tc chains offload support for nic flows")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c