# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2024/09/11305690
- Thread: https://ratatoskr.run/netdev/2024/09/11305393/t.md

```text
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.
```
