diff options
author | Antonio Quartulli <a@unstable.cc> | 2016-10-24 14:32:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-27 22:07:25 +0200 |
commit | 4fe77d82ef80c77031c9c6f8554cd0dee2aa423a (patch) | |
tree | 2fe5567112b6865494cc91eb13bd391954827e50 /include/net/tc_act | |
parent | devlink: Prevent port_type_set() callback when it's not needed (diff) | |
download | linux-4fe77d82ef80c77031c9c6f8554cd0dee2aa423a.tar.xz linux-4fe77d82ef80c77031c9c6f8554cd0dee2aa423a.zip |
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>
Diffstat (limited to 'include/net/tc_act')
-rw-r--r-- | include/net/tc_act/tc_skbedit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tc_act/tc_skbedit.h b/include/net/tc_act/tc_skbedit.h index 5767e9dbcf92..19cd3d345804 100644 --- a/include/net/tc_act/tc_skbedit.h +++ b/include/net/tc_act/tc_skbedit.h @@ -27,6 +27,7 @@ struct tcf_skbedit { u32 flags; u32 priority; u32 mark; + u32 mask; u16 queue_mapping; u16 ptype; }; |