igbvf: Regard vf reset nack as success
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 1 Dec 2022 10:20:03 +0000 (19:20 +0900)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 16 Mar 2023 15:55:56 +0000 (08:55 -0700)
commit02c83791ef969c6a8a150b4927193d0d0e50fb23
tree1f97b430c9b2b290113755b8d7455d6aa563ed8c
parent85eb39bb39cbb5c086df1e19ba67cc1366693a77
igbvf: Regard vf reset nack as success

vf reset nack actually represents the reset operation itself is
performed but no address is assigned. Therefore, e1000_reset_hw_vf
should fill the "perm_addr" with the zero address and return success on
such an occasion. This prevents its callers in netdev.c from saying PF
still resetting, and instead allows them to correctly report that no
address is assigned.

Fixes: 6ddbc4cf1f4d ("igb: Indicate failure on vf reset for empty mac address")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igbvf/vf.c