diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-05-02 10:12:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-02 15:33:54 -0400 |
commit | 9da3242e6a83b6f315aa9c394c939da8e4ad7774 (patch) | |
tree | 99cf52e16f42ce3b3ae204bbded5e796c7cfafa4 /net/sched | |
parent | 5657f89abb2d8966ac7678b84e3c020b93f340f4 (diff) | |
download | linux-9da3242e6a83b6f315aa9c394c939da8e4ad7774.tar.gz linux-9da3242e6a83b6f315aa9c394c939da8e4ad7774.tar.bz2 linux-9da3242e6a83b6f315aa9c394c939da8e4ad7774.zip |
net: sched: add helpers to handle extended actions
Jump is now the only one using value action opcode. This is going to
change soon. So introduce helpers to work with this. Convert TC_ACT_JUMP.
This also fixes the TC_ACT_JUMP check, which is incorrectly done as a
bit check, not a value check.
Fixes: e0ee84ded796 ("net sched actions: Complete the JUMPX opcode")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/act_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 7f2cd702bb27..a90e8f355c00 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -453,7 +453,7 @@ repeat: if (ret == TC_ACT_REPEAT) goto repeat; /* we need a ttl - JHS */ - if (ret & TC_ACT_JUMP) { + if (TC_ACT_EXT_CMP(ret, TC_ACT_JUMP)) { jmp_prgcnt = ret & TCA_ACT_MAX_PRIO_MASK; if (!jmp_prgcnt || (jmp_prgcnt > nr_actions)) { /* faulty opcode, stop pipeline */ |