]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita60b46bcdc4e5052bf9fb007698e91ecc002d6cc
tree99cf52e16f42ce3b3ae204bbded5e796c7cfafa4
parent71589cd3b0f41b06f98c35b2680ccc3b5a49dda7
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: 106abafb8e59 ("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