From: Ben Pfaff Date: Fri, 8 Apr 2011 23:38:42 +0000 (-0700) Subject: dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device(). X-Git-Tag: v1.1.1~44 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=7f1aca9025d638d53ca1dd7cea03f5aeb02d4702 dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device(). ENOENT can be returned if the kernel module isn't loaded. If that's the case then we've already logged that and there's no point in logging it again. --- diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index fd08e6402..fed81b747 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -1072,7 +1072,7 @@ dpif_linux_is_internal_device(const char *name) error = dpif_linux_vport_get(name, &reply, &buf); if (!error) { ofpbuf_delete(buf); - } else if (error != ENODEV) { + } else if (error != ENODEV && error != ENOENT) { VLOG_WARN_RL(&error_rl, "%s: vport query failed (%s)", name, strerror(error)); }