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:58:13 +0000 (10:58 -0700)
commitbb13fe5ee926c506a99c95d31fa328fd3cc4ead1
treef3b69d7139c9e878afa0f9fe4fae78c320687ec9
parentb666962be3b2772bec76c2df0c1aec90ce373b36
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