summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorZhenyu Gao <sysugaozhenyu@gmail.com>2017-06-26 10:30:55 +0000
committerBen Pfaff <blp@ovn.org>2017-07-11 21:39:33 -0700
commit2383dfe6b214581634726bd25df7ad0680b338f8 (patch)
tree49671b36672e8b3c6c129fa04206c40433d926cf /vswitchd
parentfae145ca7c8b942ed18e73ecd63ca484f091e3b0 (diff)
downloadopenvswitch-2383dfe6b214581634726bd25df7ad0680b338f8.tar.gz
vswitchd: Fix IFACE_STAT name error in iface_refresh_stats
The element of rx_1024_to_1522_packets has wrong name(rx_1024_to_1518_packets). Change it from rx_1024_to_1518_packets to rx_1024_to_1522_packets, it should record packets between 1024 to 1522. The element of tx_1024_to_1522_packets has wrong name(tx_1024_to_1518_packets). Change it from tx_1024_to_1518_packets to tx_1024_to_1522_packets, it should record packets between 1024 to 1522. CC: mweglicx <michalx.weglicki@intel.com> Fixes: d6e3feb57c44 ("Add support for extended netdev statistics based on RFC 2819.") Signed-off-by: Zhenyu Gao <sysugaozhenyu@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 8336d7048..b9fb8e6eb 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -2369,14 +2369,14 @@ iface_refresh_stats(struct iface *iface)
IFACE_STAT(rx_128_to_255_packets, "rx_128_to_255_packets") \
IFACE_STAT(rx_256_to_511_packets, "rx_256_to_511_packets") \
IFACE_STAT(rx_512_to_1023_packets, "rx_512_to_1023_packets") \
- IFACE_STAT(rx_1024_to_1522_packets, "rx_1024_to_1518_packets") \
+ IFACE_STAT(rx_1024_to_1522_packets, "rx_1024_to_1522_packets") \
IFACE_STAT(rx_1523_to_max_packets, "rx_1523_to_max_packets") \
IFACE_STAT(tx_1_to_64_packets, "tx_1_to_64_packets") \
IFACE_STAT(tx_65_to_127_packets, "tx_65_to_127_packets") \
IFACE_STAT(tx_128_to_255_packets, "tx_128_to_255_packets") \
IFACE_STAT(tx_256_to_511_packets, "tx_256_to_511_packets") \
IFACE_STAT(tx_512_to_1023_packets, "tx_512_to_1023_packets") \
- IFACE_STAT(tx_1024_to_1522_packets, "tx_1024_to_1518_packets") \
+ IFACE_STAT(tx_1024_to_1522_packets, "tx_1024_to_1522_packets") \
IFACE_STAT(tx_1523_to_max_packets, "tx_1523_to_max_packets") \
IFACE_STAT(tx_multicast_packets, "tx_multicast_packets") \
IFACE_STAT(rx_broadcast_packets, "rx_broadcast_packets") \