]> 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)
commit1c78cd591828bcaa4048083c5f1746a8aba9e1a8
tree6377ef3d207d3586e190ceabef3af0351bb44218
parenta65ca87a4c5f2a65ed73875db9c8c50ce1852155
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