On Tue, Jul 7, 2020 at 2:07 AM Toshiaki Makita
<[email protected]> wrote:
>
> On 2020/06/30 0:30, Toshiaki Makita wrote:
> ...
> >   int netdev_afxdp_init(void)
> >   {
> >       libbpf_set_print(libbpf_print);
> > -    return 0;
> > +    return netdev_register_flow_api_provider(&netdev_offload_xdp);
>
> This causes duplicate flow api provider error because afxdp and afxdp-nonpmd 
> are using
> the same init function, and afxdp-nonpmd netdev registration fails.
> Probably afxdp-nonpmd does not need to call this init function.

I think we just need to make sure it registers only once.
you can use
   ovsthread_once_start(&once)
see example in netdev_dpdk_class_init(void)

Regards,
William
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to