[PATCH 25.11] net/iavf: drain in-flight Tx before reset
Kevin Traynor
ktraynor at redhat.com
Fri Dec 4 14:21:59 CET 2026
On 12/3/26 19:31, Anurag Mandal wrote:
> [ upstream commit 30e1aab01bae733b5f7c10dd0809a794d4bc0c04 ]
>
> On an impending PF reset, in-flight Tx descriptors were left pending
> when the queues were torn down, which could trigger Malicious Driver
> Detection (MDD) events and leak descriptors.
>
> Added iavf_dev_tx_drain() to let already-posted Tx bursts complete and
> flush the rings within a bounded budget, and call it on reset-impending
> events before teardown, preventing MDD events and descriptor leaks. The
> drain selects the cleanup routine that matches the active Tx path.
>
> Fixes: ece7d7eef04f ("net/iavf: fix duplicate VF reset during PF reset recovery")
> Cc:stable at dpdk.org
>
> Signed-off-by: Anurag Mandal<anurag.mandal at intel.com>
> Acked-by: Ciara Loftus<ciara.loftus at intel.com>
> ---
> drivers/net/intel/iavf/iavf.h | 3 +
> drivers/net/intel/iavf/iavf_rxtx.c | 100 ++++++++++++++++++++++++++++
> drivers/net/intel/iavf/iavf_rxtx.h | 6 ++
> drivers/net/intel/iavf/iavf_vchnl.c | 4 ++
> 4 files changed, 113 insertions(+)
Thanks Anurag, I will push with the batch next week.
@Ciara, with this commit in the 25.11 branch below patch applies
cleanly, so no need for a rebase
485360e1e8 Ciara Loftus net/iavf: fix crash in Tx drain on PF reset
More information about the stable
mailing list