]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Prepare non-linear legacy RQ for XDP multi buffer support
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Wed, 26 Jan 2022 15:43:33 +0000 (17:43 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 18 Mar 2022 20:51:11 +0000 (13:51 -0700)
commit1848f61a16c75c4a970a56dd4d9c5da007315738
treeb8e00ed21e845eba7acc1598f548b8d1fa0aaf55
parent1739517e9161f642770b0ac325af86c0f91ae5d1
net/mlx5e: Prepare non-linear legacy RQ for XDP multi buffer support

mlx5e_skb_from_cqe_nonlinear creates an xdp_buff first, putting the
first fragment as the linear part, and the rest of fragments as
fragments to struct skb_shared_info in the tailroom. Then it creates an
SKB in place, based on the xdp_buff. The XDP program is not called in
this commit yet.

This commit contains no functional change, except the SKB is built over
the whole frag_stride of the first fragment, instead of the minimal size
required (headroom, data and skb_shared_info).

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_rx.c