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)
commit4e5e6b5d9d1334d3490326b6922a2daaf56a867f
tree9995bf22575e605488fc5163eb08f43176e8a008
parentcf4f5530bb55ef7d5a91036b26676643b80b1616
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: 5520deb15326 ("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