blob: 6389959a5157cf1f43338a3742093f66b14b564e [file] [log] [blame]
Ben Cheng30692c62013-10-15 18:26:18 -07001#ifndef __LINUX_TC_PED_H
2#define __LINUX_TC_PED_H
3
4#include <linux/types.h>
5#include <linux/pkt_cls.h>
6
7#define TCA_ACT_PEDIT 7
8
9enum {
10 TCA_PEDIT_UNSPEC,
11 TCA_PEDIT_TM,
12 TCA_PEDIT_PARMS,
Christopher Ferrisccfaccd2016-08-24 12:11:31 -070013 TCA_PEDIT_PAD,
Ben Cheng30692c62013-10-15 18:26:18 -070014 __TCA_PEDIT_MAX
15};
16#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
17
18struct tc_pedit_key {
19 __u32 mask; /* AND */
20 __u32 val; /*XOR */
21 __u32 off; /*offset */
22 __u32 at;
23 __u32 offmask;
24 __u32 shift;
25};
26
27struct tc_pedit_sel {
28 tc_gen;
29 unsigned char nkeys;
30 unsigned char flags;
31 struct tc_pedit_key keys[0];
32};
33#define tc_pedit tc_pedit_sel
34
35#endif