iavf: Fix for the false positive ASQ/ARQ errors while issuing VF reset
authorSurabhi Boob <surabhi.boob@intel.com>
Fri, 4 Jun 2021 16:48:59 +0000 (09:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:48:42 +0000 (11:48 +0100)
commit3a9ecf33e9cc76ea51cc88b1e3ab550e3b893142
treef5a43d2392e1c0f813b7ddfd2e259a11484eedd7
parent21c6e6e40d1534a1a78092ded4a7a802b70d60a5
iavf: Fix for the false positive ASQ/ARQ errors while issuing VF reset

[ Upstream commit 321421b57a12e933f92b228e0e6d0b2c6541f41d ]

While issuing VF Reset from the guest OS, the VF driver prints
logs about critical / Overflow error detection. This is not an
actual error since the VF_MBX_ARQLEN register is set to all FF's
for a short period of time and the VF would catch the bits set if
it was reading the register during that spike of time.
This patch introduces an additional check to ignore this condition
since the VF is in reset.

Fixes: 19b73d8efaa4 ("i40evf: Add additional check for reset")
Signed-off-by: Surabhi Boob <surabhi.boob@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40evf/i40evf_main.c