Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 0f9ec0c ("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: e74e1bb ("net/iavf: enable port reset") Fixes: 0f9ec0c ("net/iavf: fix VF reset when using DCF") Cc: kaiwenx.deng@intel.com Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Hongbo Li <hongbox.li@intel.com>
- Loading branch information