* 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
* Re: xdpsock ... -N -z and AF_XDP XDP_ZEROCOPY not working: RESOLVED!
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
0 siblings, 1 reply; 3+ messages in thread
From: David Ahern @ 2020-01-30 4:41 UTC (permalink / raw)
To: Cameron Elliott, Xdp, Magnus Karlsson
On 1/29/20 6:02 PM, Cameron Elliott wrote:
> 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!
since this is literally bleeding edge, is there a wiki/doc/other for
kernel versions and supported features? Something similar to what MLX
does for switchdev [1] would be really helpful.
[1] https://github.com/Mellanox/mlxsw/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: xdpsock ... -N -z and AF_XDP XDP_ZEROCOPY not working: RESOLVED!
2020-01-30 4:41 ` David Ahern
@ 2020-01-30 8:02 ` Jesper Dangaard Brouer
0 siblings, 0 replies; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2020-01-30 8:02 UTC (permalink / raw)
To: David Ahern; +Cc: Cameron Elliott, Xdp, Magnus Karlsson
On Wed, 29 Jan 2020 21:41:57 -0700
David Ahern <dsahern@gmail.com> wrote:
> On 1/29/20 6:02 PM, Cameron Elliott wrote:
> > 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!
>
> since this is literally bleeding edge, is there a wiki/doc/other for
> kernel versions and supported features? Something similar to what MLX
> does for switchdev [1] would be really helpful.
>
> [1] https://github.com/Mellanox/mlxsw/wiki
The IOvisor BCC project tries to keep track of kernel version and BPF +
XDP features, here[2]:
[2] https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
^ 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.