]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Feb 2022 11:39:56 +0000 (12:39 +0100)
commita4161e4861132d5b324746a260283e87f2d65daf
tree4d4ecb985da55d71058413d465a089c993e10079
parent66c6dbfc8493fc1b0192f74c12d417d911ee632b
net/mlx5e: Fix broken SKB allocation in HW-GRO

commit 7957837b816f11eecb9146235bb0715478f4c81f upstream.

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: f97d5c2a453e ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c