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

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: If50412dc1e84c4f1f5b977b58d0e1aeb5ab8ebe6
This commit is contained in:
Steven Luong
2019-08-30 11:22:13 -07:00
committed by Neale Ranns
parent 4e1fcf4905
commit ddf625d603

View File

@ -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);