diff options
| author | Anirudh Venkataramanan <[email protected]> | 2019-04-16 10:34:51 -0700 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2019-05-29 22:56:28 -0700 |
| commit | 047e52c0e8ae5066f3f84fd93371b2bfa3d4c30b (patch) | |
| tree | 181ebecb2db14148a78ea2b3721345375fab57c8 /drivers/net/ethernet/intel/ice/ice_common.c | |
| parent | 561f4379019f5a3ead431d0a60e70f71aa081902 (diff) | |
ice: Add support for virtchnl_vector_map.[rxq|txq]_map
Add support for virtchnl_vector_map.[rxq|txq]_map to use bitmap to
associate indicated queues with the specified vector. This support is
needed since the Windows AVF driver calls VIRTCHNL_OP_CONFIG_IRQ_MAP for
each vector and used the bitmap to indicate the associated queues.
Updated ice_vc_dis_qs_msg to not subtract one from
virtchnl_irq_map_info.num_vectors, and changed the VSI vector index to
the vector id. This change supports the Windows AVF driver which maps
one vector at a time and sets num_vectors to one. Using vectors_id to
index the vector array .
Add check for vector_id zero, and return VIRTCHNL_STATUS_ERR_PARAM
if vector_id is zero and there are rings associated with that vector.
Vector_id zero is for the OICR.
Signed-off-by: Anirudh Venkataramanan <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions