aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-02-27 08:49:17 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-27 13:12:19 -0500
commit1d9978757d387dc64ad5e9ee021d1e3cb5082e07 (patch)
tree120157cf4564c5ee5ee93a0d10a925b515b82760
parente83887f67bee00daca7db271fa44db462c55eb28 (diff)
Revert "net: sched: fw: don't set arg->stop in fw_walk() when empty"
This reverts commit 31a998487641 ("net: sched: fw: don't set arg->stop in fw_walk() when empty") Cls API function tcf_proto_is_empty() was changed in commit 6676d5e416ee ("net: sched: set dedicated tcf_walker flag when tp is empty") to no longer depend on arg->stop to determine that classifier instance is empty. Instead, it adds dedicated arg->nonempty field, which makes the fix in fw classifier no longer necessary. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/cls_fw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c
index 456ee6e62dfa..ad036b00427d 100644
--- a/net/sched/cls_fw.c
+++ b/net/sched/cls_fw.c
@@ -363,7 +363,10 @@ static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg,
363 struct fw_head *head = rtnl_dereference(tp->root); 363 struct fw_head *head = rtnl_dereference(tp->root);
364 int h; 364 int h;
365 365
366 if (head == NULL || arg->stop) 366 if (head == NULL)
367 arg->stop = 1;
368
369 if (arg->stop)
367 return; 370 return;
368 371
369 for (h = 0; h < HTSIZE; h++) { 372 for (h = 0; h < HTSIZE; h++) {