summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-08-26 10:09:44 -0700
committerSteven Luong <sluong@cisco.com>2019-08-26 10:12:39 -0700
commitda8fd67914096ea6740846f08735f77311e379dc (patch)
tree1c046cfb4e07a8deb3d86a73b5b82702bdb8d7db
parent8b5c75ca40d965d4e1bed10ff2f7d5ab2d1076aa (diff)
avf: properly set irq queue masks
Manual port from master due to conflict. Type: fix Ticket: VPP-1755 Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: Ieb1211f828e60e2bd9e038009939248761cb8370
-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 5fd1d6cd8db..de964399b98 100644
--- a/src/plugins/avf/device.c
+++ b/src/plugins/avf/device.c
@@ -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);
}