[ovs-discuss] About ovs_vport_init() error

Gregory Rose gvrose8192 at gmail.com
Tue Jan 22 23:48:22 UTC 2019



On 1/22/2019 1:13 AM, Ken Ajiro wrote:
> However I think that inet6_add_protocol() never return -EEXIST so I 
> think that this special handling won't work.
>    (It looks that inet6_add_protocol() returns only 0 or -1)
>
> int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol)
> {
>          return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
>                          NULL, prot) ? 0 : -1;
> }
>
>    Thanks,
>

You're correct.  I've sent a patch to the dev list to fix it.  It's here:

https://mail.openvswitch.org/pipermail/ovs-dev/2019-January/355500.html

Nice catch!!

- Greg



More information about the discuss mailing list