[ovs-dev] [PATCH V2] netdev-linux: Make netdev_linux_get_in6() conform to API definition.

Ben Pfaff blp at nicira.com
Fri Jul 24 16:37:06 UTC 2015


On Fri, Jul 24, 2015 at 09:41:11AM -0700, Alex Wang wrote:
> The get_in6() API defined in netdev-provider.h requires the return
> of error values when the 'netdev' has no assigned IPv6 address or
> the 'netdev' does not support IPv6.  However, the netdev_linux_get_in6()
> implementation does not follow this (always return 0).  And this
> causes the a bug in deleting vlan interfaces created for vlan
> splinter.
> 
> This commit makes netdev_linux_get_in6() conform to the API definition
> and returns the specified error value when failing to get IPv6 address.
> 
> VMware-BZ: #1485521
> Reported-by: Ronald Lee <ronaldlee at vmware.com>
> Signed-off-by: Alex Wang <alexw at nicira.com>
> 
> ---
> PATCH->V2:
> - Take Ben's advice and cache the error.

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list