OSDN Git Service

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)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 2 Feb 2021 07:02:02 +0000 (23:02 -0800)
commita34ffec8af8ff1c730697a99e09ec7b74a3423b6
tree3e0738a8f206f932dcda4ac9660306859c34d21d
parent5a2ba25a55c4dc0f143567c99aede768b6628ebd
net/mlx5e: Release skb in case of failure in tc update skb

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>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c