summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorEelco Chaudron <echaudro@redhat.com>2018-10-02 08:51:05 -0400
committerBen Pfaff <blp@ovn.org>2018-10-02 15:28:55 -0700
commit6b4d0211e84ad668cf4089b0d8d3c6cbd04e53bf (patch)
treeab6052384fc7ddc0d01db1515861cf3ee3f8ac51 /vswitchd
parent516f62f7947ea5dd9c40d99170a6e8a1637e7b64 (diff)
downloadopenvswitch-6b4d0211e84ad668cf4089b0d8d3c6cbd04e53bf.tar.gz
bridge: Fix ovs-appctl qos/show repeated queue information
The patch below would stop qos/show to repeat information from the previous queues. See below an example before and after the fix: Before: $ ovs-appctl qos/show p5p2 QoS: p5p2 linux-htb max-rate: 2428800 Default: burst: 12512 min-rate: 12000 max-rate: 2428800 tx_packets: 0 tx_bytes: 0 tx_errors: 0 Queue 20: burst: 12512 burst: 12512 min-rate: 12000 min-rate: 12000 max-rate: 607200 max-rate: 2428800 tx_packets: 28780 tx_bytes: 43572920 tx_errors: 17611 Queue 10: burst: 12512 burst: 12512 burst: 12512 max-rate: 2428800 max-rate: 607200 max-rate: 2428800 min-rate: 12000 min-rate: 12000 min-rate: 12000 tx_packets: 71751 tx_bytes: 108631014 tx_errors: 18503 After: $ ovs-appctl qos/show p5p2 QoS: p5p2 linux-htb max-rate: 2428800 Default: burst: 12512 min-rate: 12000 max-rate: 2428800 tx_packets: 0 tx_bytes: 0 tx_errors: 0 Queue 20: burst: 12512 min-rate: 12000 max-rate: 607200 tx_packets: 28780 tx_bytes: 43572920 tx_errors: 17611 Queue 10: burst: 12512 min-rate: 12000 max-rate: 2428800 tx_packets: 71751 tx_bytes: 108631014 tx_errors: 18503 Signed-off-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 706a07cc6..875bb607c 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -3235,6 +3235,7 @@ qos_unixctl_show(struct unixctl_conn *conn, int argc OVS_UNUSED,
smap_init(&details);
NETDEV_QUEUE_FOR_EACH (&queue_id, &details, &dump, iface->netdev) {
qos_unixctl_show_queue(queue_id, &details, iface, &ds);
+ smap_clear(&details);
}
smap_destroy(&details);