diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-09-03 03:23:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-09-03 03:23:41 -0400 |
commit | ae1ad26388228048db6a5f1056bd569ed2bbc4ec (patch) | |
tree | 223f50677aa00eb6f2a6529099a1005c7e43c071 /net/ipv4/tcp_ulp.c | |
parent | c84b82dd3e593db217f23c60f7edae02c76a3c4c (diff) | |
parent | 089cf7f6ecb266b6a4164919a2e69bd2f938374a (diff) |
Merge tag 'v5.3-rc7' into x86/mm, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_ulp.c')
-rw-r--r-- | net/ipv4/tcp_ulp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ulp.c b/net/ipv4/tcp_ulp.c index 3d8a1d835471..4849edb62d52 100644 --- a/net/ipv4/tcp_ulp.c +++ b/net/ipv4/tcp_ulp.c | |||
@@ -96,6 +96,19 @@ void tcp_get_available_ulp(char *buf, size_t maxlen) | |||
96 | rcu_read_unlock(); | 96 | rcu_read_unlock(); |
97 | } | 97 | } |
98 | 98 | ||
99 | void tcp_update_ulp(struct sock *sk, struct proto *proto) | ||
100 | { | ||
101 | struct inet_connection_sock *icsk = inet_csk(sk); | ||
102 | |||
103 | if (!icsk->icsk_ulp_ops) { | ||
104 | sk->sk_prot = proto; | ||
105 | return; | ||
106 | } | ||
107 | |||
108 | if (icsk->icsk_ulp_ops->update) | ||
109 | icsk->icsk_ulp_ops->update(sk, proto); | ||
110 | } | ||
111 | |||
99 | void tcp_cleanup_ulp(struct sock *sk) | 112 | void tcp_cleanup_ulp(struct sock *sk) |
100 | { | 113 | { |
101 | struct inet_connection_sock *icsk = inet_csk(sk); | 114 | struct inet_connection_sock *icsk = inet_csk(sk); |