]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 09:59:40 +0000 (11:59 +0200)
commita1576539a06b2b1bebdd20a3cf4c316e2cb6e634
treeb50738f34ebc5d9628796f3fc281bbdeb6fc4da1
parentd7855440f02cb5a1928d36f9953c9564097c78b6
i40e: Fix interface init with MSI interrupts (no MSI-X)

[ Upstream commit 06c6181444151ba1ba98cd35f5c656203abebb48 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_main.c