net: sched: add helpers to handle extended actions
authorJiri Pirko <jiri@mellanox.com>
Tue, 2 May 2017 08:12:00 +0000 (10:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:33:54 +0000 (15:33 -0400)
commit9da3242e6a83b6f315aa9c394c939da8e4ad7774
tree99cf52e16f42ce3b3ae204bbded5e796c7cfafa4
parent5657f89abb2d8966ac7678b84e3c020b93f340f4
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>
include/uapi/linux/pkt_cls.h
net/sched/act_api.c