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)
commit4fe77d82ef80c77031c9c6f8554cd0dee2aa423a
tree2fe5567112b6865494cc91eb13bd391954827e50
parent6edf10173a1feb1078f2fc8c655baf9614e83493
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