diff options
author | Eric Dumazet <edumazet@google.com> | 2019-03-22 16:56:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-24 02:57:38 +0100 |
commit | dc05360fee660a9dbe59824b3f7896534210432b (patch) | |
tree | fa8642f7e29d461bbdd900e86a5d85e131421879 /include/net/sock.h | |
parent | Merge branch 'net-dev-BYPASS-for-lockless-qdisc' (diff) | |
download | linux-dc05360fee660a9dbe59824b3f7896534210432b.tar.xz linux-dc05360fee660a9dbe59824b3f7896534210432b.zip |
net: convert rps_needed and rfs_needed to new static branch api
We prefer static_branch_unlikely() over static_key_false() these days.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 8de5ee258b93..fecdf639225c 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -966,7 +966,7 @@ static inline void sock_rps_record_flow_hash(__u32 hash) static inline void sock_rps_record_flow(const struct sock *sk) { #ifdef CONFIG_RPS - if (static_key_false(&rfs_needed)) { + if (static_branch_unlikely(&rfs_needed)) { /* Reading sk->sk_rxhash might incur an expensive cache line * miss. * |