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

Dariusz Sosnowski dsosnowski at nvidia.com
Fri Feb 9 17:07:40 CET 2024


> -----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>

Best regards,
Dariusz Sosnowski


More information about the dev mailing list