diff options
| author | Eric Dumazet <edumazet@google.com> | 2024-01-22 14:25:59 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-09 12:32:09 +0300 |
| commit | 37103a9d7f128f5c876d87aedd43baa8ebe6cc9b (patch) | |
| tree | 94ae4c48bf3b0f5c25a96f86149039f3f3a2cf27 /include/linux | |
| parent | 5ef3e03228e16c11f79cb4e1d16edd3f4c8bf0f2 (diff) | |
| download | linux-37103a9d7f128f5c876d87aedd43baa8ebe6cc9b.tar.xz | |
sock_diag: add module pointer to "struct sock_diag_handler"
[ Upstream commit 114b4bb1cc19239b272d52ebbe156053483fe2f8 ]
Following patch is going to use RCU instead of
sock_diag_table_mutex acquisition.
This patch is a preparation, no change of behavior yet.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: eb02688c5c45 ("ipv6: release nexthop on device removal")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sock_diag.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sock_diag.h b/include/linux/sock_diag.h index 0b9ecd8cf979..7c07754d711b 100644 --- a/include/linux/sock_diag.h +++ b/include/linux/sock_diag.h @@ -13,6 +13,7 @@ struct nlmsghdr; struct sock; struct sock_diag_handler { + struct module *owner; __u8 family; int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh); int (*get_info)(struct sk_buff *skb, struct sock *sk); |
