diff options
author | Eric Dumazet <edumazet@google.com> | 2021-12-06 17:30:32 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-07 20:44:59 -0800 |
commit | e44b14ebae1025cff3bef2d78a2e2f6869cefca0 (patch) | |
tree | 31f7e28b5c9a9db72a55cf3b802ca8e65da69f07 /net/ipv6/route.c | |
parent | 4fc003fe0313276f0d4ea996ab9b4acd9a5a5e93 (diff) |
inet: add net device refcount tracker to struct fib_nh_common
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8d834f901b48..4d02a329ab60 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -3628,6 +3628,8 @@ pcpu_alloc: } fib6_nh->fib_nh_dev = dev; + netdev_tracker_alloc(dev, &fib6_nh->fib_nh_dev_tracker, gfp_flags); + fib6_nh->fib_nh_oif = dev->ifindex; err = 0; out: |