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.

>          netdev_vport_tunnel_register();
>  #endif
>  #if defined(__FreeBSD__) || defined(__NetBSD__)
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to