]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix broken SKB allocation in HW-GRO
authorKhalid Manaa <khalidm@nvidia.com>
Wed, 26 Jan 2022 12:25:55 +0000 (14:25 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Feb 2022 04:59:41 +0000 (20:59 -0800)
commitc7ca1c8216915c564288baec3bc00ea25e7070c7
treebe1bae141074fff0ec5f68ded0c5137b4b3cd75f
parent4e34c213c5e86e9ba3c1bd1a26768b067ca3c708
net/mlx5e: Fix broken SKB allocation in HW-GRO

In case the HW doesn't perform header-data split, it will write the whole
packet into the data buffer in the WQ, in this case the SHAMPO CQE handler
couldn't use the header entry to build the SKB, instead it should allocate
a new memory to build the SKB using the function:
mlx5e_skb_from_cqe_mpwrq_nonlinear.

Fixes: 37d47fae04b8 ("net/mlx5e: Add handle SHAMPO cqe support")
Signed-off-by: Khalid Manaa <khalidm@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c