Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Alexei Starovoitov says: ==================== pull-request: bpf 2019-07-25 The following pull-request contains BPF updates for your *net* tree. The main changes are: 1) fix segfault in libbpf, from Andrii. 2) fix gso_segs access, from Eric. 3) tls/sockmap fixes, from Jakub and John. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -96,6 +96,19 @@ void tcp_get_available_ulp(char *buf, size_t maxlen)
|
||||
rcu_read_unlock();
|
||||
}
|
||||
|
||||
void tcp_update_ulp(struct sock *sk, struct proto *proto)
|
||||
{
|
||||
struct inet_connection_sock *icsk = inet_csk(sk);
|
||||
|
||||
if (!icsk->icsk_ulp_ops) {
|
||||
sk->sk_prot = proto;
|
||||
return;
|
||||
}
|
||||
|
||||
if (icsk->icsk_ulp_ops->update)
|
||||
icsk->icsk_ulp_ops->update(sk, proto);
|
||||
}
|
||||
|
||||
void tcp_cleanup_ulp(struct sock *sk)
|
||||
{
|
||||
struct inet_connection_sock *icsk = inet_csk(sk);
|
||||
|
Reference in New Issue
Block a user