From 7fa710e43fdf2dbf7fe41877cf73e04ccc4a7166 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 12 Nov 2010 12:12:03 -0800 Subject: [PATCH] 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. --- lib/dpif-netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2