]> git.proxmox.com Git - ovs.git/commit
datapath: return -EEXIST if inet6_add_protocol fails
authorGreg Rose <gvrose8192@gmail.com>
Tue, 22 Jan 2019 23:42:55 +0000 (15:42 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 23 Jan 2019 19:49:19 +0000 (11:49 -0800)
commitad83fc9ab6119abc14a46bdf71de020da02aefec
tree282e191377fe75b151f799be506cdf8e24ab6d4b
parentf22ca8011fdb7e81ffce5017cd26539bccf50e94
datapath: return -EEXIST if inet6_add_protocol fails

Our code to determine whether receive functionality will work with
ip6 gre depends on the return of -EEXIST but inet6_add_protocol()
returns a -1 on failure to grab the pointer via a cmpxchg op.  Just
set the error return to -EEXIST to help out the vport init function.

Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2019-January/048090.html
Reported-by: Ken Ajiro <ken-ajiro@xr.jp.nec.com>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
datapath/linux/compat/ip6_gre.c