All of lore.kernel.org
 help / color / mirror / Atom feed
* xdpsock ... -N -z and AF_XDP XDP_ZEROCOPY not working: RESOLVED!
@ 2020-01-30  1:02 Cameron Elliott
  2020-01-30  4:41 ` David Ahern
  0 siblings, 1 reply; 3+ messages in thread
From: Cameron Elliott @ 2020-01-30  1:02 UTC (permalink / raw)
  To: Xdp, Magnus Karlsson

My benchmarking with xdpsock was failing whenever I added '-z' to the
'-N' option.
Which is basically the XDP_ZEROCOPY flag to the AF_XDP setup call.


I had the latest x710 firmware, and latest i40e driver on my ubuntu 18.04 box.
I also had th 5.3.0 kernel as installed by:
"sudo apt-get install --install-recommends linux-generic-hwe-18.04"

To my surprise, xdpsock ... -N -z was failing with errno 95


Turns out the 5.3.0 kernel was the culprit that prevented '-z' working with '-N'
(prevented XDP_ZEROCOPY working)

I installed the bpf-next kernel found here:

With this command:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git
More info: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/

I built the kernel using these directions:
https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

And after rebooting and running on the 5.5 bpf-next kernel, -z and
XDP_ZEROCOPY were working fine!


Many many thanks to Magnus for his help tracking this down.


I re-posted this under a better title (IMHO) to help others suffering
the same fate to find it.



Cameron Elliott

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-30  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-30  1:02 xdpsock ... -N -z and AF_XDP XDP_ZEROCOPY not working: RESOLVED! Cameron Elliott
2020-01-30  4:41 ` David Ahern
2020-01-30  8:02   ` Jesper Dangaard Brouer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.