[ovs-dev] [ofproto tests 10/29] dpif-netdev: Do not log error for EOPNOTSUPP return from netdev_recv().

Ben Pfaff blp at nicira.com
Tue Nov 16 19:21:00 UTC 2010


If a network device does not implement receiving packets, there is no point
in logging it as an error.
---
 lib/dpif-netdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index b4d3b53..c2e8101 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -932,7 +932,7 @@ dp_netdev_run(void)
             error = netdev_recv(port->netdev, &packet);
             if (!error) {
                 dp_netdev_port_input(dp, port, &packet);
-            } else if (error != EAGAIN) {
+            } else if (error != EAGAIN && error != EOPNOTSUPP) {
                 struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
                 VLOG_ERR_RL(&rl, "error receiving data from %s: %s",
                             netdev_get_name(port->netdev), strerror(error));
-- 
1.7.1





More information about the dev mailing list