net/mlx5e: XDP, Allow non-linear single-segment frames in XDP TX MPWQE
authorTariq Toukan <tariqt@nvidia.com>
Mon, 17 Apr 2023 12:18:59 +0000 (15:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2023 07:59:26 +0000 (08:59 +0100)
commit63abf14e13ed09ead1d979949963fe08ced3a77c
treebb47d5bba792b574612ada80e1f560f9a35b4fd2
parent124d0d8daf85ddf106a25ab0647e41b956e5cd38
net/mlx5e: XDP, Allow non-linear single-segment frames in XDP TX MPWQE

Under a few restrictions, TX MPWQE feature can serve multiple TX packets
in a single TX descriptor. It requires each of the packets to have a
single scatter entry / segment.

Today we allow only linear frames to use this feature, although there's
no real problem with non-linear ones where the whole packet reside in
the first fragment.

Expand the XDP TX MPWQE feature support to include such frames. This is
in preparation for the downstream patch, in which we will generate such
non-linear frames.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c