]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Build SKB in place over the first fragment in non-linear legacy RQ
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Wed, 26 Jan 2022 15:18:26 +0000 (17:18 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 17 Mar 2022 18:51:55 +0000 (11:51 -0700)
commit416cabfa49902ca3e470de4837c2499312d36f45
tree6377ef3d207d3586e190ceabef3af0351bb44218
parent19980d1a4954e0b87887d836cd3d4e3bc42cac52
net/mlx5e: Build SKB in place over the first fragment in non-linear legacy RQ

As a performance optimization and preparation to enabling XDP multi
buffer on non-linear legacy RQ, build the linear part of the SKB over
the first fragment, instead of allocating a new buffer and copying the
first 256 bytes there.

To achieve this, add headroom and tailroom to the first fragment.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c