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)
commit4e8231f1c22d36bbf1eed20b2a54609f2e4c49ed
treeb8e00ed21e845eba7acc1598f548b8d1fa0aaf55
parente89600ebeeb14d18c0b062837a84196f72542830
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