make XDP program aware of multi buffer

Henning Fehrmann <[email protected]> Tue, 29 Nov 2022 13:14:51 +0100
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <[email protected]>
Hello,

we use XDP/BPF programs to redirect and record network data.
We run the 6.0.9 vanilla kernel with the delivered Mellanox driver.
We mounted MT28800 NICs.

As this scheme seems to work reliably we'd like to step forward and
enable multi buffer packets. We get the following message from the driver:

mlx5_core 0000:01:00.0 enp1s0f0np0: XDP is not allowed with striding RQ and MTU(9000) > 3498

We turned striding off and now we get:

mlx5_core 0000:01:00.0 enp1s0f0np0: MTU(9000) > 3498, too big for an XDP program not aware of multi buffer

It seems that we have to make the XDP program aware of multi buffer.
What would be the correct way to do it?

Thank you,
Henning