]> git.proxmox.com Git - ovs.git/commitdiff
Revert "ofproto-dpif: Check for EBUSY as well"
authorFlavio Leitner <fbl@redhat.com>
Thu, 13 Dec 2018 14:24:47 +0000 (12:24 -0200)
committerBen Pfaff <blp@ovn.org>
Fri, 25 Jan 2019 21:20:12 +0000 (13:20 -0800)
This reverts commit c65259a9b6e5380ac963944b69949ceb71ae623a.

The original commit 7521e0cf9e88 ("ofproto-dpif: Let the dpif report
when a port is a duplicate.") relies on the kernel to check if the
port exists or not. However, the current kernel code doesn't handle
when the port is moved to another network namespace.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif.c

index 14fe6fc8a830175247c7f6304fd187203f86fb24..0dc1387b47127ee722b874977dd86551d27e7a15 100644 (file)
@@ -3665,7 +3665,7 @@ port_add(struct ofproto *ofproto_, struct netdev *netdev)
 
     odp_port_t port_no = ODPP_NONE;
     int error = dpif_port_add(ofproto->backer->dpif, netdev, &port_no);
-    if (error != EEXIST && error != EBUSY) {
+    if (error != EEXIST) {
         if (error) {
             return error;
         }