aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-02-26 09:49:11 -0800
committerDavid S. Miller <davem@davemloft.net>2019-02-26 13:16:03 -0800
commit921f9a0f2e8c326bfcdde7a59be0bac801a3d588 (patch)
tree590ede430a2a25ca46c5e171b4f74a6c203fbc6f /net/ipv4/tcp_ipv4.c
parenttcp: get rid of __tcp_add_write_queue_tail() (diff)
downloadlinux-dev-921f9a0f2e8c326bfcdde7a59be0bac801a3d588.tar.xz
linux-dev-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 <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 4010ae3644f3..831d844a27ca 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -973,7 +973,7 @@ static void tcp_v4_reqsk_destructor(struct request_sock *req)
* We need to maintain these in the sk structure.
*/
-struct static_key tcp_md5_needed __read_mostly;
+DEFINE_STATIC_KEY_FALSE(tcp_md5_needed);
EXPORT_SYMBOL(tcp_md5_needed);
/* Find the Key structure for an address. */