dpif-netdev: Do not log error for EOPNOTSUPP return from netdev_recv().
authorBen Pfaff <blp@nicira.com>
Fri, 12 Nov 2010 20:12:03 +0000 (12:12 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Nov 2010 20:35:50 +0000 (12:35 -0800)
If a network device does not implement receiving packets, there is no point
in logging it as an error.

lib/dpif-netdev.c

index 996c9a6..3cecde7 100644 (file)
@@ -933,7 +933,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));