]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix creation of first queue by omitting it if is not power of two
authorJedrzej Jagielski <jedrzej.jagielski@intel.com>
Mon, 21 Jun 2021 08:37:31 +0000 (08:37 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 18 Nov 2021 00:20:57 +0000 (16:20 -0800)
commit8a8f89e9312a38c97b78e311b606b8ec4e2d2a4d
treec9e8b4255b278259dafc14b768d128c60ee123c1
parent17defff715bf94c0a02ec34ceff67577f4d7b7bd
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: b0d1cf53ffdf ("i40e: Add infrastructure for queue channel support")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c