aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface/rx_queue.c
diff options
context:
space:
mode:
authorMaxime Peim <mpeim@cisco.com>2021-05-06 12:17:25 +0200
committerMohammed Hawari <mohammed@hawari.fr>2021-09-07 15:48:37 +0200
commit5b22339973feaa3eba48ead1e9fb428b1816c0cc (patch)
treea00efedefde3ddec7693bde6b109267e61b8ad83 /src/vnet/interface/rx_queue.c
parent277ae8ba43cdfcf9c22adfb675cf5b15b8b4f898 (diff)
interface: full poll vector on adaptive mode
When an input supports adaptive mode and enters in polling, some rx queues may be missing from the node's rx_poll_vector. To solve the issue, a full poll vector is being computed in vnet_hw_if_update_runtime_data, and returned by vnet_hw_if_get_rxq_poll_vector when the node is polling in adaptive mode. Type: fix Signed-off-by: Maxime Peim <mpeim@cisco.com> Change-Id: I249bcb20ae0dd28afb0a5ca32993092bafd2f6b1
Diffstat (limited to 'src/vnet/interface/rx_queue.c')
-rw-r--r--src/vnet/interface/rx_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/interface/rx_queue.c b/src/vnet/interface/rx_queue.c
index 1099a0ba0f9..7632b190705 100644
--- a/src/vnet/interface/rx_queue.c
+++ b/src/vnet/interface/rx_queue.c
@@ -238,7 +238,7 @@ vnet_hw_if_generate_rxq_int_poll_vector (vlib_main_t *vm,
ASSERT (node->state == VLIB_NODE_STATE_INTERRUPT);
- vec_reset_length (rt->rxq_poll_vector);
+ vec_reset_length (rt->rxq_vector_int);
while ((int_num = clib_interrupt_get_next (rt->rxq_interrupts, int_num)) !=
-1)
@@ -248,7 +248,7 @@ vnet_hw_if_generate_rxq_int_poll_vector (vlib_main_t *vm,
clib_interrupt_clear (rt->rxq_interrupts, int_num);
- vec_add2 (rt->rxq_poll_vector, pv, 1);
+ vec_add2 (rt->rxq_vector_int, pv, 1);
pv->dev_instance = rxq->dev_instance;
pv->queue_id = rxq->queue_id;
}