X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdpif.c;h=18ef790afac4d74abad7651e21166fa67b826848;hb=85b20fd6ee585f462e012fbcc7f966a81edab2ed;hp=9577e4faa7719decc75811cf5350f5837f0f2c90;hpb=0aeaabc8dbccef7593dc19e891a3f5bbef1991cd;p=sliver-openvswitch.git diff --git a/lib/dpif.c b/lib/dpif.c index 9577e4faa..18ef790af 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -62,6 +62,7 @@ static const struct dpif_class *base_dpif_classes[] = { &dpif_linux_class, #endif &dpif_netdev_class, + &dpif_planetlab_class, }; struct registered_dpif_class { @@ -516,7 +517,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)); }