igbvf: Regard vf reset nack as success
stable inclusion from stable-v5.10.177 commit d3e4844c1829646a0945318bf342f18b64715509 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d3e4844c1829646a0945318bf342f18b64715509 -------------------------------- [ Upstream commit 02c83791 ] 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: 6ddbc4cf ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment