From: Rasesh Mody Date: Sat, 18 Mar 2017 06:50:20 +0000 (-0700) Subject: net/qede/base: fix VF init after malicious VF FLR X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8168b63d8c1e37508f49bcd94417a55ff25a278a;p=dpdk.git net/qede/base: fix VF init after malicious VF FLR Fix VF init after malicious VF FLR. Fixes: 40c926ba2626 ("net/qede/base: support to initiate PF FLR") Fixes: 86a2265e59d7 ("qede: add SRIOV support") Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/ecore_sriov.c index d28946ec3d..40671dda96 100644 --- a/drivers/net/qede/base/ecore_sriov.c +++ b/drivers/net/qede/base/ecore_sriov.c @@ -3073,6 +3073,13 @@ ecore_iov_execute_vf_flr_cleanup(struct ecore_hwfn *p_hwfn, return rc; } + /* Workaround to make VF-PF channel ready, as FW + * doesn't do that as a part of FLR. + */ + REG_WR(p_hwfn, + GTT_BAR0_MAP_REG_USDM_RAM + + USTORM_VF_PF_CHANNEL_READY_OFFSET(vfid), 1); + /* VF_STOPPED has to be set only after final cleanup * but prior to re-enabling the VF. */