netdev-linux: do not warn when getting stats for netdev with no vport
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Tue, 7 Jul 2015 18:38:51 +0000 (15:38 -0300)
committerBen Pfaff <blp@nicira.com>
Thu, 16 Jul 2015 17:59:31 +0000 (10:59 -0700)
commit951a98739d2b84916885b6da9d1ec4beb2361ba7
tree2bc463a4361e591265fef53bc058db7da0fa20bc
parent0ce17a1bb0ac4cdf776b389aee8db45ce0bd021e
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>
lib/netdev-linux.c