X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdpif.c;h=9feb67ba92ec8f01612f07aac535fe6461e57336;hb=bee6b8bc16b1c42fef8843cffe4d68b464cddadf;hp=9577e4faa7719decc75811cf5350f5837f0f2c90;hpb=0958f12880427e4f3ea3fcc758a3ddf681ae6f5d;p=openvswitch diff --git a/lib/dpif.c b/lib/dpif.c index 9577e4fa..9feb67ba 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -516,7 +516,7 @@ bool dpif_port_exists(const struct dpif *dpif, const char *devname) { int error = dpif->dpif_class->port_query_by_name(dpif, devname, NULL); - if (error != 0 && error != ENODEV) { + if (error != 0 && error != ENOENT && error != ENODEV) { VLOG_WARN_RL(&error_rl, "%s: failed to query port %s: %s", dpif_name(dpif), devname, strerror(error)); }