diff options
author | Damjan Marion <damarion@cisco.com> | 2017-02-28 21:55:28 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-03-01 11:11:37 +0000 |
commit | b3bb10101ceffec1df0624c785acbd40858870ec (patch) | |
tree | 9f4a8bc34be67373a372f800cd6eab86e85d556a /src/vnet/devices/netmap | |
parent | f7c379403a98cf060d28bac24916c51067c4ec90 (diff) |
devices: vnet_get_aggregate_rx_packets should not be dpdk specific
Change-Id: I1152db4b7d1602653d7d8b2c6cb28cf5c526c4ca
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices/netmap')
-rw-r--r-- | src/vnet/devices/netmap/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/devices/netmap/node.c b/src/vnet/devices/netmap/node.c index 19895e4754a..835209a3449 100644 --- a/src/vnet/devices/netmap/node.c +++ b/src/vnet/devices/netmap/node.c @@ -249,6 +249,8 @@ netmap_device_input_fn (vlib_main_t * vm, vlib_node_runtime_t * node, + VNET_INTERFACE_COUNTER_RX, os_get_cpu_number (), nif->hw_if_index, n_rx_packets, n_rx_bytes); + vnet_device_increment_rx_packets (cpu_index, n_rx_packets); + return n_rx_packets; } |