[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141003080600.GA13146@zenon.in.qult.net>
Date: Fri, 3 Oct 2014 10:06:00 +0200
From: Ignacy Gawędzki
<ignacy.gawedzki@...en-communications.fr>
To: netdev@...r.kernel.org
Subject: [PATCH net] ematch: Fix the matching of inverted containers (again).
The result of a negated container has to be inverted before checking for
early ending.
Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@...en-communications.fr>
---
net/sched/ematch.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/net/sched/ematch.c b/net/sched/ematch.c
index ad57f44..300ecf6 100644
--- a/net/sched/ematch.c
+++ b/net/sched/ematch.c
@@ -526,11 +526,12 @@ pop_stack:
match_idx = stack[--stackp];
cur_match = tcf_em_get_match(tree, match_idx);
- if (tcf_em_early_end(cur_match, res)) {
- if (tcf_em_is_inverted(cur_match))
- res = !res;
+ if (tcf_em_is_inverted(cur_match))
+ res = !res;
+
+ if (tcf_em_early_end(cur_match, res))
goto pop_stack;
- } else {
+ else {
match_idx++;
goto proceed;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists