projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42bb6c7
)
dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device().
author
Ben Pfaff
<blp@nicira.com>
Fri, 8 Apr 2011 23:38:42 +0000
(16:38 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 11 Apr 2011 17:46:39 +0000
(10:46 -0700)
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.
lib/dpif-linux.c
patch
|
blob
|
history
diff --git
a/lib/dpif-linux.c
b/lib/dpif-linux.c
index a7823b886a9f1fb00a84cb85ddd077ee3bdbfc56..fa8eea6e7a26c3c5ac4ceaa1869a7a774c5f3a73 100644
(file)
--- 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));
}