]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix return of set the new channel count
authorMateusz Palczewski <mateusz.palczewski@intel.com>
Tue, 9 Feb 2021 11:59:38 +0000 (11:59 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 15 Nov 2021 23:39:36 +0000 (15:39 -0800)
commita9d4f6858378314c56520398a4ad64f7300f091f
tree9995bf22575e605488fc5163eb08f43176e8a008
parentc870684a043e7a6c1c82a9cf7c85993dba99ff1f
iavf: Fix return of set the new channel count

Fixed return correct code from set the new channel count.
Implemented by check if reset is done in appropriate time.
This solution give a extra time to pf for reset vf in case
when user want set new channel count for all vfs.
Without this patch it is possible to return misleading output
code to user and vf reset not to be correctly performed by pf.

Fixes: 416141060e52 ("iavf: Enable support for up to 16 queues")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_ethtool.c