Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / include / uapi / linux / tc_act / tc_pedit.h
blob6389959a5157cf1f43338a3742093f66b14b564e
1 #ifndef __LINUX_TC_PED_H
2 #define __LINUX_TC_PED_H
4 #include <linux/types.h>
5 #include <linux/pkt_cls.h>
7 #define TCA_ACT_PEDIT 7
9 enum {
10 TCA_PEDIT_UNSPEC,
11 TCA_PEDIT_TM,
12 TCA_PEDIT_PARMS,
13 TCA_PEDIT_PAD,
14 __TCA_PEDIT_MAX
16 #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
18 struct tc_pedit_key {
19 __u32 mask; /* AND */
20 __u32 val; /*XOR */
21 __u32 off; /*offset */
22 __u32 at;
23 __u32 offmask;
24 __u32 shift;
27 struct tc_pedit_sel {
28 tc_gen;
29 unsigned char nkeys;
30 unsigned char flags;
31 struct tc_pedit_key keys[0];
33 #define tc_pedit tc_pedit_sel
35 #endif