ice: manage VFs MSI-X using resource tracking
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Thu, 19 Oct 2023 17:32:23 +0000 (10:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2023 11:53:05 +0000 (12:53 +0100)
commit4d38cb44bd321c81da3457cfbc38501ed8cb6714
treef7d8bbca05c9318eee4fed731491998008257478
parent05c16687e0cc78205eaa1b7a70fc6a95f8d3a417
ice: manage VFs MSI-X using resource tracking

Track MSI-X for VFs using bitmap, by setting and clearing bitmap during
allocation and freeing.

Try to linearize irqs usage for VFs, by freeing them and allocating once
again. Do it only for VFs that aren't currently running.

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_sriov.c