Re: [PATCH v6 net-next 07/15] net-shapers: implement shaper cleanup on queue deletion

From
Jakub Kicinski <kuba@kernel.org>
Date
2024-09-06 14:56:29
Also in
intel-wired-lan
Reply to
Paolo Abeni, 2024-09-06
On Fri, 6 Sep 2024 16:49:32 +0200 Paolo Abeni wrote:
I forgot to mention there is another, easier, alternative: keep the max 
queue id check in the drivers. The driver will have to acquire and held 
in the shaper callbacks the relevant driver-specific lock - 'crit_lock', 
in the iavf case.

Would you be ok with such 2nd option?
I'd strongly prefer if you implemented what was suggested.
Side note: I think the iavf should have to acquire such lock in the 
callbacks no matter what or access/write to the rings info could be racy.
Thread (32 messages) 32 messages, 2 authors, last reply 2024-09-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help