]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/uapi/linux/tc_act/tc_pedit.h
sched: align nlattr properly when needed
[mirror_ubuntu-bionic-kernel.git] / include / uapi / linux / tc_act / tc_pedit.h
CommitLineData
1da177e4
LT
1#ifndef __LINUX_TC_PED_H
2#define __LINUX_TC_PED_H
3
5dbbf3bc 4#include <linux/types.h>
1da177e4
LT
5#include <linux/pkt_cls.h>
6
7#define TCA_ACT_PEDIT 7
8
d94d9fee 9enum {
1da177e4
LT
10 TCA_PEDIT_UNSPEC,
11 TCA_PEDIT_TM,
12 TCA_PEDIT_PARMS,
9854518e 13 TCA_PEDIT_PAD,
1da177e4
LT
14 __TCA_PEDIT_MAX
15};
16#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
17
d94d9fee 18struct tc_pedit_key {
1da177e4
LT
19 __u32 mask; /* AND */
20 __u32 val; /*XOR */
21 __u32 off; /*offset */
22 __u32 at;
23 __u32 offmask;
24 __u32 shift;
25};
26
d94d9fee 27struct tc_pedit_sel {
1da177e4
LT
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