]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06c6181444151ba1ba98cd35f5c656203abebb48
tree8fca83021cffdeb1369662c9d214e9187b3ad070
parentdc2c032d10bad9664764cf54ad761ee979f707bc
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: a2d761c94ee9 ("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