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
28#define SKBEDIT_F_QUEUE_MAPPING 0x228#define SKBEDIT_F_QUEUE_MAPPING 0x2
29#define SKBEDIT_F_MARK 0x429#define SKBEDIT_F_MARK 0x4
30#define SKBEDIT_F_PTYPE 0x830#define SKBEDIT_F_PTYPE 0x8
31#define SKBEDIT_F_MASK 0x10
31 32
32struct tc_skbedit {33struct tc_skbedit {
33 tc_gen;34 tc_gen;
@@ -42,6 +43,7 @@ enum { · 8 unmodified lines
42 TCA_SKBEDIT_MARK,43 TCA_SKBEDIT_MARK,
43 TCA_SKBEDIT_PAD,44 TCA_SKBEDIT_PAD,
44 TCA_SKBEDIT_PTYPE,45 TCA_SKBEDIT_PTYPE,
46 TCA_SKBEDIT_MASK,
45 __TCA_SKBEDIT_MAX47 __TCA_SKBEDIT_MAX
46};48};
47#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1)49#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