iavf: Fix for setting queues to 0
authorGrzegorz Szczurek <grzegorzx.szczurek@intel.com>
Fri, 4 Jun 2021 16:49:00 +0000 (09:49 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 15 Nov 2021 23:40:04 +0000 (15:40 -0800)
commit9a6e9e483a9684a34573fd9f9e30ecfb047cb8cb
tree21dc82044b8056c09daa8a25ff855935c72df4d9
parent321421b57a12e933f92b228e0e6d0b2c6541f41d
iavf: Fix for setting queues to 0

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>
drivers/net/ethernet/intel/iavf/iavf_ethtool.c