tap: interface rx counter not increment correct 45/21645/2
authorSteven Luong <sluong@cisco.com>
Fri, 30 Aug 2019 17:49:44 +0000 (10:49 -0700)
committerDamjan Marion <dmarion@me.com>
Mon, 2 Sep 2019 18:31:07 +0000 (18:31 +0000)
commitefa119db3910e77f79eb005c67f8c01b473b40a1
tree327ee197408abaa506a6f404ee81f9b6a1530aec
parentd770cfc96257f9bd9e0c96c8ebe50e4531dc1bc5
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

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I6db042186eeeacf32250f7ef261af8cd6f5ce56e
src/vnet/devices/virtio/node.c