From e4e5beed793326aa5cddfc7ffcc6df696f988b83 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Wed, 24 Jul 2019 21:16:09 -0700 Subject: bonding: incorrect RX counters for bond interface show interface does not display the RX counters for the bond interfaces. It displays rx-no-buf instead. The problem is VNET_INTERFACE_COUNTER_RX is a combined counter, not a simple counter. Change the code to use vlib_increment_combined_counter passing it with n_rx_packets and n_rx_bytes. Type: fix Ticket: VPP-1757 Change-Id: I8121ad7e546447049fa13da62481b6c8f5575bec Signed-off-by: Steven Luong (cherry picked from commit c94afaade0a8fec724d051a202591f5b37dd0f49) --- src/vnet/bonding/device.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/vnet/bonding/device.c') diff --git a/src/vnet/bonding/device.c b/src/vnet/bonding/device.c index 0ca7f9eab31..a3be0e33841 100644 --- a/src/vnet/bonding/device.c +++ b/src/vnet/bonding/device.c @@ -751,11 +751,6 @@ done: ptd->per_port_queue[p].n_buffers = 0; } } - - vlib_increment_simple_counter (vnet_main.interface_main.sw_if_counters - + VNET_INTERFACE_COUNTER_TX, thread_index, - bif->sw_if_index, frame->n_vectors); - return frame->n_vectors; } -- cgit 1.2.3-korg