Does Mellanox Technologies MT27800 Family [ConnectX-5] support AF_XDP zerocopy mode on Linux?

Hi,

I am trying to use AF_XDP on Ubuntu 20.04 with Mellanox Technologies MT27800 Family [ConnectX-5] . The problem I am facing is that when I try to bind the AF_XDP socket in zerocopy mode it fails. There is no problem connecting it in copy mode. Since the zerocopy performance is much higher I wanted to know if this feature is supported by Mellanox drivers on Linux and how I can get it to work.

Thank you

Hi,

Which kernel do you have ?

Did you try a latest one ?

Regards

Marc

I am using a fresh installed Ubuntu 20.04. It has kernel version 5.4.0.

Hi,

Yes the non -zero copy mode must work as expected, but please open a support case if you have any issue,

Marc

Yes, Non-ZeroCopy mode works fine. So I guess ZeroCopy is not supported.

Thank you

If any one else wonders why AF_XDP zerocopy is not working with Mellanox (for example why xdpsock in Linux BPF sample programs is not able to connect) then please have a look at here https://www.spinics.net/lists/xdp-newbies/msg01347.html . As said in this link Connect X4 and above will support AF_XDP zerocopy mode.

Thank you