avf: properly set irq queue masks 39/21539/1
authorDamjan Marion <[email protected]>
Thu, 22 Aug 2019 11:36:15 +0000 (13:36 +0200)
committersteven luong <[email protected]>
Mon, 26 Aug 2019 16:21:02 +0000 (16:21 +0000)
Type: fix
Fixes: ae91180

Change-Id: I9c55c3fdf41089d337b998e2e28abb23d81525ef
Signed-off-by: Damjan Marion <[email protected]>
(cherry picked from commit 2ca9a84bd00f2aee642d0147c1b99d4be5725a70)

src/plugins/avf/device.c

index 543a54e..d7e91d9 100644 (file)
@@ -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,