[ovs-dev] [ovs-dev, PATCHv6] netdev-afxdp: add new netdev type for AF_XDP.

William Tu u9012063 at gmail.com
Fri Apr 26 15:47:09 UTC 2019


On Fri, Apr 26, 2019 at 2:46 AM Ilya Maximets <i.maximets at samsung.com>
wrote:

> On 25.04.2019 2:47, William Tu wrote:
> > diff --git a/lib/netdev.c b/lib/netdev.c
> > index 7d7ecf6f0946..c30016b34033 100644
> > --- a/lib/netdev.c
> > +++ b/lib/netdev.c
> > @@ -145,6 +145,7 @@ netdev_initialize(void)
> >          netdev_register_provider(&netdev_linux_class);
> >          netdev_register_provider(&netdev_internal_class);
> >          netdev_register_provider(&netdev_tap_class);
> > +        netdev_register_provider(&netdev_afxdp_class);
>
> It's better to move this under #ifdef HAVE_AF_XDP to not register
> netdev class that will not work. Otherwise it'll be confusing for
> users because OVS will report afxdp in a list of supported port
> types and will allow port creation.
>

Yes, thanks.
Will do it next version.
William

>
> >          netdev_vport_tunnel_register();
> >  #endif
> >  #if defined(__FreeBSD__) || defined(__NetBSD__)
>


More information about the dev mailing list