]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit114ee7bd9bba3204abcb0ae9381349b4f875b945
tree3e0738a8f206f932dcda4ac9660306859c34d21d
parent13e004a7eedb735c5b6de57f27fc95904d97b632
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: f79fa51bd418 ("net/mlx5: E-Switch, Restore chain id on miss")
Fixes: eddac9e8d121 ("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