aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-12-07 08:29:10 -0800
committerDavid S. Miller <davem@davemloft.net>2016-12-08 13:18:35 -0500
commit13bfff25c081f4e060af761c4082b5a96f756810 (patch)
tree2c170254731c68a46814d0d1bf296915709afcdf /net/core/dev.c
parentmacsec: remove first zero and add attribute name in comments (diff)
downloadlinux-dev-13bfff25c081f4e060af761c4082b5a96f756810.tar.xz
linux-dev-13bfff25c081f4e060af761c4082b5a96f756810.zip
net: rfs: add a jump label
RFS is not commonly used, so add a jump label to avoid some conditionals in fast path. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index bffb5253e778..1d33ce03365f 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3447,6 +3447,8 @@ EXPORT_SYMBOL(rps_cpu_mask);
struct static_key rps_needed __read_mostly;
EXPORT_SYMBOL(rps_needed);
+struct static_key rfs_needed __read_mostly;
+EXPORT_SYMBOL(rfs_needed);
static struct rps_dev_flow *
set_rps_cpu(struct net_device *dev, struct sk_buff *skb,