diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2022-09-14 11:25:54 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-09-16 16:16:53 +0000 |
commit | dd0144a4563212e193b517d05b231350d58fa53e (patch) | |
tree | e4634fcf73ab639292aebebd22f76fa9e5928c9a /src/vnet/devices/virtio/node.c | |
parent | c795b8836d83b4b062aa21423f842aa765269c2c (diff) |
virtio: add support for per queue packet counter
Type: improvement
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I21a701a556b88a9d81f0e074a59fa34b3746b1d9
Diffstat (limited to 'src/vnet/devices/virtio/node.c')
-rw-r--r-- | src/vnet/devices/virtio/node.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c index 551651ed372..a022ee5eacc 100644 --- a/src/vnet/devices/virtio/node.c +++ b/src/vnet/devices/virtio/node.c @@ -390,6 +390,7 @@ virtio_device_input_gso_inline (vlib_main_t *vm, vlib_node_runtime_t *node, } vring->last_used_idx = last; + vring->total_packets += n_rx_packets; vlib_increment_combined_counter (vnm->interface_main.combined_sw_if_counters + VNET_INTERFACE_COUNTER_RX, thread_index, vif->sw_if_index, n_rx_packets, |