tap: interface rx counter not increment correct 29/21729/1
authorSteven Luong <sluong@cisco.com>
Fri, 30 Aug 2019 17:49:44 +0000 (10:49 -0700)
committersteven luong <sluong@cisco.com>
Tue, 3 Sep 2019 18:18:09 +0000 (18:18 +0000)
commitb254e4d6c35f4af4f08ba278051d3ac006d3e2cc
tree408a3139318cb3b2886295c8120c20519d70ba7c
parente4e5beed793326aa5cddfc7ffcc6df696f988b83
tap: interface rx counter not increment correct

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-1759

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I6db042186eeeacf32250f7ef261af8cd6f5ce56e
(cherry picked from commit efa119db3910e77f79eb005c67f8c01b473b40a1)
src/vnet/devices/virtio/node.c