[PATCH] ethdev: recommend against using locks in event callbacks

Ferruh Yigit ferruh.yigit at amd.com
Fri Feb 9 22:13:08 CET 2024


On 2/9/2024 4:07 PM, Dariusz Sosnowski wrote:
>> -----Original Message-----
>> From: David Marchand <david.marchand at redhat.com>
>> Sent: Thursday, February 1, 2024 09:43
>> To: dev at dpdk.org
>> Cc: ktraynor at redhat.com; NBU-Contact-Thomas Monjalon (EXTERNAL)
>> <thomas at monjalon.net>; Ferruh Yigit <ferruh.yigit at amd.com>; Andrew
>> Rybchenko <andrew.rybchenko at oktetlabs.ru>
>> Subject: [PATCH] ethdev: recommend against using locks in event callbacks
>>
>> As described in a recent bugzilla opened against the net/iavf driver, a driver
>> may call a event callback from other calls of the ethdev API.
>>
>> Nothing guarantees in the ethdev API against such behavior.
>>
>> Add a notice against using locks in those callbacks.
>>
>> Bugzilla ID: 1337
>>
>> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> 

Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>

Applied to dpdk-next-net/main, thanks.



More information about the dev mailing list