[Intel-wired-lan] [PATCH net v1] i40e: Fix creation of first queue by omitting it if is not power of two

Brelinski, Tony tony.brelinski at intel.com
Wed Oct 27 20:54:02 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jagielski, Jedrzej
> Sent: Monday, June 21, 2021 1:38 AM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Jagielski, Jedrzej <jedrzej.jagielski at intel.com>
> Subject: [Intel-wired-lan] [PATCH net v1] i40e: Fix creation of first queue by
> omitting it if is not power of two
> 
> Reject TCs creation with proper message if the first queue assignment is not
> equal to the power of two.
> The first queue number was checked too late in the second queue iteration,
> if second queue was configured at all. Now if first queue value is not a power
> of two, then trying to create qdisc will be rejected.
> 
> Fixes: 8f88b3034db3 ("i40e: Add infrastructure for queue channel support")
> Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek at intel.com>
> Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 59 ++++++++++----------------
> ---
>  1 file changed, 19 insertions(+), 40 deletions(-)

Tested-by: Tony Brelinski <tony.brelinski at intel.com>





More information about the Intel-wired-lan mailing list