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

netdev-linux: do not warn when getting stats for netdev with no vport

When there is no vport for a given netdev, dpif_netlink_vport_get might return
ENODEV. Do not warn a failure to get port stats when that's the case.

This happens when the userspace switch is used.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Thadeu Lima de Souza Cascardo
2015-07-07 15:38:51 -03:00
committed by Ben Pfaff
parent b666962be3
commit bb13fe5ee9

View File

@@ -1597,7 +1597,7 @@ get_stats_via_vport(const struct netdev *netdev_,
int error;
error = get_stats_via_vport__(netdev_, stats);
if (error && error != ENOENT) {
if (error && error != ENOENT && error != ENODEV) {
VLOG_WARN_RL(&rl, "%s: obtaining netdev stats via vport failed "
"(%s)",
netdev_get_name(netdev_), ovs_strerror(error));