[dpdk-dev] [PATCH] net/ena: fix releasing Tx ring mbufs
Ferruh Yigit
ferruh.yigit at intel.com
Wed Apr 7 10:15:38 CEST 2021
On 4/6/2021 6:25 AM, Michał Krawczyk wrote:
> wt., 6 kwi 2021 o 02:27 David Harton <dharton at cisco.com> napisał(a):
>>
>> When ena_tx_queue_release_bufs() frees the mbufs it does not clear
>> the mbuf pointers. So, when the device starts and stops multiple
>> times it can cause the application to receive duplicate mbufs for
>> two different packets. Fix the issue by clearing the mbuf pointer.
>>
>> Also, while tracking down the "double free" issue the ena calls to
>> allocate and free mbufs in bulk were migrated to the mbuf based APIs
>> so the common mbuf alloc/free routines are exercised.
>>
>> Fixes: 79405ee17585 ("net/ena: fix out of order completion")
>> Fixes: 1173fca25af9 ("ena: add polling-mode driver")
>>
>> Signed-off-by: David Harton <dharton at cisco.com>
> Acked-by: Michal Krawczyk <mk at semihalf.com>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list