ice: Refactor ice_ena_vf_mappings to split MSIX and queue mappings
authorBrett Creeley <brett.creeley@intel.com>
Sat, 16 May 2020 00:51:07 +0000 (17:51 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 22:55:54 +0000 (15:55 -0700)
commitac3716134a40b04e18a2dda78800797129138005
tree10be552e1ea23648d9b8ef9370f8bb14908351c7
parentd3112cd1abec7a28bbe885c2151875bcff4e9092
ice: Refactor ice_ena_vf_mappings to split MSIX and queue mappings

Currently ice_ena_vf_mappings() does all of the VF's MSIX and queue
mapping in one function. This makes it hard to digest. Fix this by
creating a new function for enabling MSIX mappings and one for enabling
queue mappings.

Also, rename some variables in the functions for clarity.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c