]> git.baikalelectronics.ru Git - kernel.git/commit
igbvf: Regard vf reset nack as success
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 1 Dec 2022 10:20:03 +0000 (19:20 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 09:16:36 +0000 (11:16 +0200)
commita1f18fc1c8e546bc200ce3917ee45d82ee73e07c
tree63a8334a38ab98f1d69966d95a09cfdf63cb5b43
parent9591f8130f6d94fba29a3908405677716b478aa4
igbvf: Regard vf reset nack as success

[ Upstream commit 02c83791ef969c6a8a150b4927193d0d0e50fb23 ]

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: 84917a8c2ed8 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/igbvf/vf.c