diff options
| author | Eric Dumazet <[email protected]> | 2019-02-26 17:49:11 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-26 21:16:03 +0000 |
| commit | 921f9a0f2e8c326bfcdde7a59be0bac801a3d588 (patch) | |
| tree | 590ede430a2a25ca46c5e171b4f74a6c203fbc6f /net/ipv4/tcp_output.c | |
| parent | tcp: get rid of __tcp_add_write_queue_tail() (diff) | |
| download | kernel-921f9a0f2e8c326bfcdde7a59be0bac801a3d588.tar.gz kernel-921f9a0f2e8c326bfcdde7a59be0bac801a3d588.zip | |
tcp: convert tcp_md5_needed to static_branch API
We prefer static_branch_unlikely() over static_key_false() these days.
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index e72aa0ff5785..91f5cc5a3f88 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -597,7 +597,7 @@ static unsigned int tcp_syn_options(struct sock *sk, struct sk_buff *skb, *md5 = NULL; #ifdef CONFIG_TCP_MD5SIG - if (static_key_false(&tcp_md5_needed) && + if (static_branch_unlikely(&tcp_md5_needed) && rcu_access_pointer(tp->md5sig_info)) { *md5 = tp->af_specific->md5_lookup(sk, sk); if (*md5) { @@ -734,7 +734,7 @@ static unsigned int tcp_established_options(struct sock *sk, struct sk_buff *skb *md5 = NULL; #ifdef CONFIG_TCP_MD5SIG - if (static_key_false(&tcp_md5_needed) && + if (static_branch_unlikely(&tcp_md5_needed) && rcu_access_pointer(tp->md5sig_info)) { *md5 = tp->af_specific->md5_lookup(sk, sk); if (*md5) { |
