diff options
author | Eric Dumazet <edumazet@google.com> | 2021-12-04 20:21:59 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-06 16:05:10 -0800 |
commit | 0b688f24b7d611db3a02f3d4ab562d049c78a17d (patch) | |
tree | de1f43261f7171c00545a19487f363e4b8cff6df /include/linux | |
parent | 80e8921b2b72c300ca56a01729004d30bedb82cd (diff) | |
download | linux-stable-0b688f24b7d611db3a02f3d4ab562d049c78a17d.tar.gz linux-stable-0b688f24b7d611db3a02f3d4ab562d049c78a17d.tar.bz2 linux-stable-0b688f24b7d611db3a02f3d4ab562d049c78a17d.zip |
net: add net device refcount tracker to struct netdev_queue
This will help debugging pesky netdev reference leaks.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 3d691fadd569..b4f704337f65 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -586,6 +586,8 @@ struct netdev_queue { * read-mostly part */ struct net_device *dev; + netdevice_tracker dev_tracker; + struct Qdisc __rcu *qdisc; struct Qdisc *qdisc_sleeping; #ifdef CONFIG_SYSFS |