[PATCH] net/iavf: delay VF reset command
Bruce Richardson
bruce.richardson at intel.com
Tue Sep 17 16:31:27 CEST 2024
On Mon, Sep 09, 2024 at 12:03:56PM +0100, Bruce Richardson wrote:
> Commit 0f9ec0cbd2a9 ("net/iavf: fix VF reset when using DCF"),
> introduced a VF-reset adminq call into the reset sequence for iavf.
> However, that call was very early in the sequence before other adminq
> commands had been sent.
>
> To delay the VF reset, we can put the message sending in the "dev_close"
> function, right before the adminq is shut down, and thereby guaranteeing
> that we won't have any subsequent issues with adminq messages.
>
> In the process of making this change, we can also use the iavf_vf_reset
> function from common/iavf, rather than hard-coding the message sending
> lower-level calls in the net driver.
>
> Fixes: e74e1bb6280d ("net/iavf: enable port reset")
> Fixes: 0f9ec0cbd2a9 ("net/iavf: fix VF reset when using DCF")
> Cc: kaiwenx.deng at intel.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
Tested-by: Hongbo Li <hongbox.li at intel.com>
Applied to dpdk-next-net-intel.
More information about the dev
mailing list