summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2020-08-02 07:43:25 -0700
committerLinux Build Service Account <lnxbuild@localhost>2020-08-02 07:43:25 -0700
commitbf2d06debec83ae14c0321a3385c55fb1c5379c6 (patch)
tree161aeb080051b4fe3a066999424a32324ee4b85f
parent536432ead6662d153536d741afd9f0bfb71f09e8 (diff)
parente3abf2d2c67f52f4b9ab683b1119c4bd8de771bf (diff)
downloaddata-kernel-bf2d06debec83ae14c0321a3385c55fb1c5379c6.tar.gz
Merge e3abf2d2c67f52f4b9ab683b1119c4bd8de771bf on remote branch
Change-Id: I8b57790fb25f6da0062fc2210fdb9435f78e3eb5
-rw-r--r--drivers/rmnet/shs/rmnet_shs_wq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rmnet/shs/rmnet_shs_wq.c b/drivers/rmnet/shs/rmnet_shs_wq.c
index 3445519..07566a2 100644
--- a/drivers/rmnet/shs/rmnet_shs_wq.c
+++ b/drivers/rmnet/shs/rmnet_shs_wq.c
@@ -1941,7 +1941,7 @@ void rmnet_shs_update_cfg_mask(void)
}
}
-void rmnet_shs_wq_filter(void)
+noinline void rmnet_shs_wq_filter(void)
{
int cpu, cur_cpu;
int temp;
@@ -1966,11 +1966,11 @@ void rmnet_shs_wq_filter(void)
rmnet_shs_cpu_rx_filter_flows[temp]++;
}
cur_cpu = hnode->current_cpu;
- if (cur_cpu >= MAX_CPUS) {
+ if (cur_cpu >= MAX_CPUS || cur_cpu < 0) {
continue;
}
- if (hnode->node->hstats->segs_per_skb > 0) {
+ if (hnode->segs_per_skb > 0) {
rmnet_shs_cpu_node_tbl[cur_cpu].seg++;
}
}