diff mbox

[ovs-dev,RFC,v1] vswitchd: Fix IFACE_STAT name error in iface_refresh_stats

Message ID 20170626103055.24869-1-sysugaozhenyu@gmail.com
State Accepted
Headers show

Commit Message

Gao Zhenyu June 26, 2017, 10:30 a.m. UTC
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.

Signed-off-by: Zhenyu Gao <sysugaozhenyu@gmail.com>
---
 vswitchd/bridge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Ben Pfaff July 12, 2017, 4:40 a.m. UTC | #1
On Mon, Jun 26, 2017 at 10:30:55AM +0000, Zhenyu Gao wrote:
> 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.
> 
> Signed-off-by: Zhenyu Gao <sysugaozhenyu@gmail.com>

Thanks, applied to master, branch-2.7, and branch-2.6.
diff mbox

Patch

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 8336d70..b9fb8e6 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")     \