summaryrefslogtreecommitdiff
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-12-05 07:22:03 +0300
committerJakub Kicinski <kuba@kernel.org>2021-12-07 03:05:10 +0300
commit9038c320001dd07f60736018edf608ac5baca0ab (patch)
treefea21a92f9a586370c4c85a5aab4adca4c160e7f /include/net/dst.h
parent4dbd24f65c60259ce5d1563433ecaf5fab693c83 (diff)
downloadlinux-9038c320001dd07f60736018edf608ac5baca0ab.tar.xz
net: dst: add net device refcount tracking to dst_entry
We want to track all dev_hold()/dev_put() to ease leak hunting. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r--include/net/dst.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index a057319aabef..6aa252c3fc55 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -77,6 +77,7 @@ struct dst_entry {
#ifndef CONFIG_64BIT
atomic_t __refcnt; /* 32-bit offset 64 */
#endif
+ netdevice_tracker dev_tracker;
};
struct dst_metrics {