2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

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.
This commit is contained in:
Ben Pfaff
2010-11-12 12:12:03 -08:00
parent 462278dbfd
commit 7fa710e43f

View 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));