]> git.baikalelectronics.ru Git - kernel.git/commit
skbedit: allow the user to specify bitmask for mark
authorAntonio Quartulli <a@unstable.cc>
Mon, 24 Oct 2016 12:32:57 +0000 (20:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Oct 2016 20:07:25 +0000 (16:07 -0400)
commit742a0d713c2d7cd65a3543e68d2ff968f3a172f5
tree2fe5567112b6865494cc91eb13bd391954827e50
parentcf20a9f890031cef202f77d613161ac0bd156ca7
skbedit: allow the user to specify bitmask for mark

The user may want to use only some bits of the skb mark in
his skbedit rules because the remaining part might be used by
something else.

Introduce the "mask" parameter to the skbedit actor in order
to implement such functionality.

When the mask is specified, only those bits selected by the
latter are altered really changed by the actor, while the
rest is left untouched.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_skbedit.h
include/uapi/linux/tc_act/tc_skbedit.h
net/sched/act_skbedit.c