ice: add bitmap to track VF MSI-X usage
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Thu, 19 Oct 2023 17:32:21 +0000 (10:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2023 11:53:05 +0000 (12:53 +0100)
commitea4af9b4005dceb3165ece6ba21091bc6362efc4
treeaa413e34c076ab2fa2b72e3920786d0a7186658b
parentfe1c5ca2fe760d95eb609976e225111fa055e931
ice: add bitmap to track VF MSI-X usage

Create a bitamp to track MSI-X usage for VFs. The bitmap has the size of
total MSI-X amount on device, because at init time the amount of MSI-X
used by VFs isn't known.

The bitmap is used in follow up patchset to provide a block of
continuous block of MSI-X indexes for each created VF.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_sriov.c