From fec95f8df7f17132ca9fdd122b7d3dab35f01daf Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Fri, 30 Aug 2019 11:22:13 -0700 Subject: vmxnet3: interface rx counter not increment correctly vlib_increment_combined_counter takes sw_if_index, not hw_if_index. Using hw_if_index may work as long as there is no subinterface created to cause hw_if_index and sw_if_index to differ. Type: fix Ticket: VPP-1760 Signed-off-by: Steven Luong Change-Id: If50412dc1e84c4f1f5b977b58d0e1aeb5ab8ebe6 (cherry picked from commit ddf625d6035d9e472bcb1a2b0197f6fd30278583) --- src/plugins/vmxnet3/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/vmxnet3/input.c b/src/plugins/vmxnet3/input.c index 6d30f19116a..cb456b1035c 100644 --- a/src/plugins/vmxnet3/input.c +++ b/src/plugins/vmxnet3/input.c @@ -437,7 +437,7 @@ vmxnet3_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_increment_combined_counter (vnm->interface_main.combined_sw_if_counters + VNET_INTERFACE_COUNTER_RX, thread_index, - vd->hw_if_index, n_rx_packets, n_rx_bytes); + vd->sw_if_index, n_rx_packets, n_rx_bytes); } error = vmxnet3_rxq_refill_ring0 (vm, vd, rxq); -- cgit 1.2.3-korg