aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-03-22 08:56:38 -0700
committerDavid S. Miller <davem@davemloft.net>2019-03-23 21:57:38 -0400
commitdc05360fee660a9dbe59824b3f7896534210432b (patch)
treefa8642f7e29d461bbdd900e86a5d85e131421879 /include/linux/netdevice.h
parentMerge branch 'net-dev-BYPASS-for-lockless-qdisc' (diff)
downloadlinux-dev-dc05360fee660a9dbe59824b3f7896534210432b.tar.xz
linux-dev-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/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 823762291ebf..166fdc0a78b4 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -194,8 +194,8 @@ struct net_device_stats {
#ifdef CONFIG_RPS
#include <linux/static_key.h>
-extern struct static_key rps_needed;
-extern struct static_key rfs_needed;
+extern struct static_key_false rps_needed;
+extern struct static_key_false rfs_needed;
#endif
struct neighbour;