avf: properly set irq queue masks 40/21540/1
authorSteven Luong <sluong@cisco.com>
Mon, 26 Aug 2019 17:09:44 +0000 (10:09 -0700)
committerSteven Luong <sluong@cisco.com>
Mon, 26 Aug 2019 17:12:39 +0000 (10:12 -0700)
Manual port from master due to conflict.

Type: fix
Ticket: VPP-1755

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Ieb1211f828e60e2bd9e038009939248761cb8370

src/plugins/avf/device.c

index 5fd1d6c..de96439 100644 (file)
@@ -629,7 +629,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;
   return avf_send_to_pf (vm, ad, VIRTCHNL_OP_CONFIG_IRQ_MAP, msg, msg_len, 0,
                         0);
 }