]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iavf: Fix for setting queues to 0
authorGrzegorz Szczurek <grzegorzx.szczurek@intel.com>
Fri, 4 Jun 2021 16:49:00 +0000 (09:49 -0700)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:34:09 +0000 (07:34 +0100)
commit66ccee07ace89072efa5cd5fa4a9ea1af85aea7d
tree07bc4a5c4588b8e5b68dee6ee25e510a72c118cb
parentb11057e64ff3c5779aa347e8525a8a0135df6c61
iavf: Fix for setting queues to 0

BugLink: https://bugs.launchpad.net/bugs/1952579
[ Upstream commit 9a6e9e483a9684a34573fd9f9e30ecfb047cb8cb ]

Now setting combine to 0 will be rejected with the
appropriate error code.
This has been implemented by adding a condition that checks
the value of combine equal to zero.
Without this patch, when the user requested it, no error was
returned and combine was set to the default value for VF.

Fixes: 5520deb15326 ("iavf: Enable support for up to 16 queues")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/ethernet/intel/iavf/iavf_ethtool.c