ice: Allow operation with reduced device MSI-X
authorTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 22 Aug 2022 18:56:54 +0000 (11:56 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 6 Sep 2022 20:55:22 +0000 (13:55 -0700)
commitce4626131112e1d0066a890371e14d8091323f99
treefe5af4c06cbf58d7b81f3c4d0d02b9f10c77909e
parent03fdb11da92fde0bdc0b6e9c1c642b7414d49e8d
ice: Allow operation with reduced device MSI-X

The driver currently takes an all or nothing approach for device MSI-X
vectors. Meaning if it does not get its full allocation, it will fail and
not load. There is no reason it can't work with a reduced number of MSI-X
vectors. Take a similar approach as commit 741106f7bd8d ("ice: Improve
MSI-X fallback logic") and, instead, adjust the MSI-X request to make use
of what is available.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Petr Oros <poros@redhat.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
drivers/net/ethernet/intel/ice/ice_main.c