aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 676c9418f8e4..9ca2d3abfd1a 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3982,9 +3982,9 @@ EXPORT_SYMBOL(rps_sock_flow_table);
3982u32 rps_cpu_mask __read_mostly; 3982u32 rps_cpu_mask __read_mostly;
3983EXPORT_SYMBOL(rps_cpu_mask); 3983EXPORT_SYMBOL(rps_cpu_mask);
3984 3984
3985struct static_key rps_needed __read_mostly; 3985struct static_key_false rps_needed __read_mostly;
3986EXPORT_SYMBOL(rps_needed); 3986EXPORT_SYMBOL(rps_needed);
3987struct static_key rfs_needed __read_mostly; 3987struct static_key_false rfs_needed __read_mostly;
3988EXPORT_SYMBOL(rfs_needed); 3988EXPORT_SYMBOL(rfs_needed);
3989 3989
3990static struct rps_dev_flow * 3990static struct rps_dev_flow *
@@ -4510,7 +4510,7 @@ static int netif_rx_internal(struct sk_buff *skb)
4510 } 4510 }
4511 4511
4512#ifdef CONFIG_RPS 4512#ifdef CONFIG_RPS
4513 if (static_key_false(&rps_needed)) { 4513 if (static_branch_unlikely(&rps_needed)) {
4514 struct rps_dev_flow voidflow, *rflow = &voidflow; 4514 struct rps_dev_flow voidflow, *rflow = &voidflow;
4515 int cpu; 4515 int cpu;
4516 4516
@@ -5179,7 +5179,7 @@ static int netif_receive_skb_internal(struct sk_buff *skb)
5179 5179
5180 rcu_read_lock(); 5180 rcu_read_lock();
5181#ifdef CONFIG_RPS 5181#ifdef CONFIG_RPS
5182 if (static_key_false(&rps_needed)) { 5182 if (static_branch_unlikely(&rps_needed)) {
5183 struct rps_dev_flow voidflow, *rflow = &voidflow; 5183 struct rps_dev_flow voidflow, *rflow = &voidflow;
5184 int cpu = get_rps_cpu(skb->dev, skb, &rflow); 5184 int cpu = get_rps_cpu(skb->dev, skb, &rflow);
5185 5185
@@ -5227,7 +5227,7 @@ static void netif_receive_skb_list_internal(struct list_head *head)
5227 5227
5228 rcu_read_lock(); 5228 rcu_read_lock();
5229#ifdef CONFIG_RPS 5229#ifdef CONFIG_RPS
5230 if (static_key_false(&rps_needed)) { 5230 if (static_branch_unlikely(&rps_needed)) {
5231 list_for_each_entry_safe(skb, next, head, list) { 5231 list_for_each_entry_safe(skb, next, head, list) {
5232 struct rps_dev_flow voidflow, *rflow = &voidflow; 5232 struct rps_dev_flow voidflow, *rflow = &voidflow;
5233 int cpu = get_rps_cpu(skb->dev, skb, &rflow); 5233 int cpu = get_rps_cpu(skb->dev, skb, &rflow);