All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 951a9873 authored by Thadeu Lima de Souza Cascardo's avatar Thadeu Lima de Souza Cascardo Committed by Ben Pfaff

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: default avatarThadeu Lima de Souza Cascardo <>
Signed-off-by: default avatarBen Pfaff <>
parent 0ce17a1b
......@@ -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 "
netdev_get_name(netdev_), ovs_strerror(error));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment