History

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.

Antonio Quartulli committed 10 years ago

Commit 4fe77d81 parent 6edf1013 files · +21 −3Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/tc_act/tc_skbedit.h+2−0
@@ -28,6 +28,7 @@ · 27 unmodified lines
2828 #define SKBEDIT_F_QUEUE_MAPPING 0x2
2929 #define SKBEDIT_F_MARK 0x4
3030 #define SKBEDIT_F_PTYPE 0x8
31+#define SKBEDIT_F_MASK 0x10
3132
3233 struct tc_skbedit {
3334 tc_gen;
@@ -42,6 +43,7 @@ enum { · 8 unmodified lines
4243 TCA_SKBEDIT_MARK,
4344 TCA_SKBEDIT_PAD,
4445 TCA_SKBEDIT_PTYPE,
46+ TCA_SKBEDIT_MASK,
4547 __TCA_SKBEDIT_MAX
4648 };
4749 #define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t