diff options
author | Eric Dumazet <edumazet@google.com> | 2021-12-05 05:22:02 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-07 01:05:10 +0100 |
commit | 4dbd24f65c60259ce5d1563433ecaf5fab693c83 (patch) | |
tree | d72a8fdf49e0a2035a2989eea2544ad98dcbf736 /include/net/devlink.h | |
parent | net: add net device refcount tracker to dev_ifsioc() (diff) | |
download | linux-4dbd24f65c60259ce5d1563433ecaf5fab693c83.tar.xz linux-4dbd24f65c60259ce5d1563433ecaf5fab693c83.zip |
drop_monitor: add net device refcount tracker
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/devlink.h')
-rw-r--r-- | include/net/devlink.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 043fcec8b0aa..3276a29f2b81 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -664,13 +664,17 @@ struct devlink_health_reporter_ops { * @trap_name: Trap name. * @trap_group_name: Trap group name. * @input_dev: Input netdevice. + * @dev_tracker: refcount tracker for @input_dev. * @fa_cookie: Flow action user cookie. * @trap_type: Trap type. */ struct devlink_trap_metadata { const char *trap_name; const char *trap_group_name; + struct net_device *input_dev; + netdevice_tracker dev_tracker; + const struct flow_action_cookie *fa_cookie; enum devlink_trap_type trap_type; }; |