i40e: Fix interface init with MSI interrupts (no MSI-X)
authorMichal Maloszewski <michal.maloszewski@intel.com>
Fri, 22 Jul 2022 17:54:01 +0000 (10:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 01:48:41 +0000 (18:48 -0700)
commit5fcbb711024aac6d4db385623e6f2fdf019f7782
tree8fca83021cffdeb1369662c9d214e9187b3ad070
parent9af0620de1e118666881376f6497d1785758b04c
i40e: Fix interface init with MSI interrupts (no MSI-X)

Fix the inability to bring an interface up on a setup with
only MSI interrupts enabled (no MSI-X).
Solution is to add a default number of QPs = 1. This is enough,
since without MSI-X support driver enables only a basic feature set.

Fixes: bc6d33c8d93f ("i40e: Fix the number of queues available to be mapped for use")
Signed-off-by: Dawid Lukwinski <dawid.lukwinski@intel.com>
Signed-off-by: Michal Maloszewski <michal.maloszewski@intel.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20220722175401.112572-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_main.c