All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH net v2] i40e: Fix interface init with MSI interrupts (no MSI-X)
@ 2022-05-20 18:07 Michal Maloszewski
  2022-07-20 18:15 ` Switzer, David
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Maloszewski @ 2022-05-20 18:07 UTC (permalink / raw)
  To: intel-wired-lan

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>
---
v2: Moving the comment in right place 
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 8572993972ef..6c41ee966570 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -1835,11 +1835,15 @@ static void i40e_vsi_setup_queue_map(struct i40e_vsi *vsi,
 		 * non-zero req_queue_pairs says that user requested a new
 		 * queue count via ethtool's set_channels, so use this
 		 * value for queues distribution across traffic classes
+		 * We need at least one queue pair for the interface
+		 * to be usable as we see in else statement.
 		 */
 		if (vsi->req_queue_pairs > 0)
 			vsi->num_queue_pairs = vsi->req_queue_pairs;
 		else if (pf->flags & I40E_FLAG_MSIX_ENABLED)
 			vsi->num_queue_pairs = pf->num_lan_msix;
+		else
+			vsi->num_queue_pairs = 1;
 	}
 
 	/* Number of queues per enabled TC */
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Intel-wired-lan] [PATCH net v2] i40e: Fix interface init with MSI interrupts (no MSI-X)
  2022-05-20 18:07 [Intel-wired-lan] [PATCH net v2] i40e: Fix interface init with MSI interrupts (no MSI-X) Michal Maloszewski
@ 2022-07-20 18:15 ` Switzer, David
  0 siblings, 0 replies; 2+ messages in thread
From: Switzer, David @ 2022-07-20 18:15 UTC (permalink / raw)
  To: Michal Maloszewski, intel-wired-lan; +Cc: Maloszewski, Michal, Lukwinski, Dawid

>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
>Michal Maloszewski
>Sent: Friday, May 20, 2022 11:07 AM
>To: intel-wired-lan@lists.osuosl.org
>Cc: Maloszewski, Michal <michal.maloszewski@intel.com>; Lukwinski, Dawid
><dawid.lukwinski@intel.com>
>Subject: [Intel-wired-lan] [PATCH net v2] 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>
>---
>v2: Moving the comment in right place
>---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++++
> 1 file changed, 4 insertions(+)
Tested-by: Dave Switzer <david.switzer@intel.com>

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-20 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 18:07 [Intel-wired-lan] [PATCH net v2] i40e: Fix interface init with MSI interrupts (no MSI-X) Michal Maloszewski
2022-07-20 18:15 ` Switzer, David

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.