diff options
author | Eric Dumazet <edumazet@google.com> | 2021-12-09 23:44:22 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-10 06:38:26 -0800 |
commit | ffa84b5ffb37a957d6062385112ab1069f760de6 (patch) | |
tree | 89733cef5d53049409a970305d2346b9548cf8f3 /include/net/sock.h | |
parent | 9ba74e6c9e9d0c5c1e5792a7111fc7d1a0589cb8 (diff) | |
download | linux-ffa84b5ffb37a957d6062385112ab1069f760de6.tar.bz2 |
net: add netns refcount tracker to struct sock
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index ae61cd0b650d..5d8532f26208 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -350,6 +350,7 @@ struct bpf_local_storage; * @sk_txtime_deadline_mode: set deadline mode for SO_TXTIME * @sk_txtime_report_errors: set report errors mode for SO_TXTIME * @sk_txtime_unused: unused txtime flags + * @ns_tracker: tracker for netns reference */ struct sock { /* @@ -538,6 +539,7 @@ struct sock { struct bpf_local_storage __rcu *sk_bpf_storage; #endif struct rcu_head sk_rcu; + netns_tracker ns_tracker; }; enum sk_pacing { |