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>
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;
}