ice: Improve MSI-X fallback logic
authorTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 27 Jan 2021 00:22:17 +0000 (16:22 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 9 Feb 2021 00:27:01 +0000 (16:27 -0800)
commit741106f7bd8d3b1c901fae7e4fd6c8921f79674c
treef77ddc65943ccc59f640eecd7150fc4f40cfef2a
parentfe6cd89050d9c21989fcd3cb7da2004cbf603cf6
ice: Improve MSI-X fallback logic

Currently if the driver is unable to get all the MSI-X vectors it wants, it
falls back to the minimum configuration which equates to a single Tx/Rx
traffic queue pair. Instead of using the minimum configuration, if given
more vectors than the minimum, utilize those vectors for additional traffic
queues after accounting for other interrupts.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c