]> 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)
commitdde368b7039497fdb7383e4a9453531695a5ab28
tree9995bf22575e605488fc5163eb08f43176e8a008
parent8f9aa34a18dd255e99a78d813282d510ce7fa72e
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: 52e3f3179501 ("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