summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-08-22 13:36:15 +0200
committersteven luong <sluong@cisco.com>2019-08-26 16:21:02 +0000
commitdc4161eb85cea9963ce5d4ad162907ec816636d6 (patch)
treee6193a741fca72719a9dcb0cc1f0033c54b81193 /src/plugins/avf
parent9e25c7723d96412a139d4f1b73f9fad020f3e7a9 (diff)
avf: properly set irq queue masks
Type: fix Fixes: ae91180 Change-Id: I9c55c3fdf41089d337b998e2e28abb23d81525ef Signed-off-by: Damjan Marion <damarion@cisco.com> (cherry picked from commit 2ca9a84bd00f2aee642d0147c1b99d4be5725a70)
Diffstat (limited to 'src/plugins/avf')
-rw-r--r--src/plugins/avf/device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c
index 543a54e60ca..d7e91d9aa09 100644
--- a/src/plugins/avf/device.c
+++ b/src/plugins/avf/device.c
@@ -693,7 +693,8 @@ avf_op_config_irq_map (vlib_main_t * vm, avf_device_t * ad)
imi->vecmap[0].vector_id = 1;
imi->vecmap[0].vsi_id = ad->vsi_id;
- imi->vecmap[0].rxq_map = 1;
+ imi->vecmap[0].rxq_map = (1 << ad->n_rx_queues) - 1;
+ imi->vecmap[0].txq_map = (1 << ad->n_tx_queues) - 1;
avf_log_debug (ad, "config_irq_map: vsi_id %u vector_id %u rxq_map %u",
ad->vsi_id, imi->vecmap[0].vector_id,