From: Ben Pfaff Date: Fri, 12 Nov 2010 20:12:03 +0000 (-0800) Subject: dpif-netdev: Do not log error for EOPNOTSUPP return from netdev_recv(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fa710e43fdf2dbf7fe41877cf73e04ccc4a7166;p=openvswitch dpif-netdev: Do not log error for EOPNOTSUPP return from netdev_recv(). If a network device does not implement receiving packets, there is no point in logging it as an error. --- diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 996c9a69..3cecde71 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -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));