# \[PATCH net-next 0/2\] net: track the queue count at unregistration

- From: Antoine Tenart \<atenart@kernel.org\>
- Date: 2021-12-07 14:57:34 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/12/11218206
- Thread: https://ratatoskr.run/netdev/2021/12/11218206/t.md

```text
Hello,

Those two patches allow to track the Rx and Tx queue count at
unregistration and help in detecting illegal addition of Tx queues after
unregister (a warning is added).

This follows discussions on the following thread,
https://lore.kernel.org/all/20211122162007.303623-1-atenart@kernel.org/T/

A patch fixing one issue linked to this was merged ealier,
https://lore.kernel.org/all/20211203101318.435618-1-atenart@kernel.org/T/

Thanks,
Antoine

Antoine Tenart (2):
  net-sysfs: update the queue counts in the unregistration path
  net-sysfs: warn if new queue objects are being created during device
    unregistration

 net/core/net-sysfs.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

-- 
2.33.1

```
