[ovs-dev] netdev-afxdp on rhel8.0 rhel8.1 rhel8.2

William Tu u9012063 at gmail.com
Fri May 8 13:53:15 UTC 2020


Hi Eelco,

Thanks for your suggestion. The xdpsock on rhel8.0 works ok, so I
guess there are some difference
in netdev-afxdp.c. We will debug it more and find a solution.

William

On Thu, May 7, 2020 at 12:26 AM Eelco Chaudron <echaudro at redhat.com> wrote:
>
> Hi William,
>
> I have not tried running XDP on RHEL for a while. But for AF_XDP and
> OVS, we kept on using the latest XDP features, which might not all be
> present in the RHEL8 kernels.
> Also, note that AF_XDP is marked Technology Preview in the release
> notes.
>
> Take a look at the specific xdpsock version included in the kernel
> source, and see what OVS does differently that would cause the failure.
>
> //Eelco
>
>
> On 7 May 2020, at 2:27, William Tu wrote:
>
> > Hi,
> >
> > We're testing afxdp on rhel8.x. We simply try to run 'make
> > check-afxdp' and see if it works.
> > We are doing:
> > $ yum install libbpf-devel numactl-devel
> > $ cd ovs; ./boot.sh ; ./configure --enable-afxdp; make check-afxdp
> >
> > On rhel8.2, the basic ping works.
> > However on rhel8.0 and 8.1, all test cases failed due to creating xsk
> > socket failed.
> > ovs-vswitchd.log shows:
> > 2020-05-07T00:08:54.891Z|00052|netdev_afxdp|INFO|ovs-p0: Setting XDP
> > mode to best-effort.
> > 2020-05-07T00:08:55.099Z|00053|netdev_afxdp|ERR|xsk_socket__create
> > failed (Operation not supported) mode: generic, use-need-wakeup:
> > false, qid: 0
> >
> > Has anyone tried it before? Or any kernel difference?
> > rhel8.1: Linux rhel-8-1 4.18.0-147.5.1.el8_1.x86_64
> > rhel8.2: Linux instance-2 4.18.0-193.el8.x86_64
> >
> > Thanks
> > William
>


More information about the dev mailing list