Merge tag 'xtensa-20180225' of git://github.com/jcmvbkbc/linux-xtensa
[cris-mirror.git] / include / uapi / linux / tc_act / tc_csum.h
blob0ecf4d29e2f31312a08931f5cd760d8a83cc8088
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __LINUX_TC_CSUM_H
3 #define __LINUX_TC_CSUM_H
5 #include <linux/types.h>
6 #include <linux/pkt_cls.h>
8 #define TCA_ACT_CSUM 16
10 enum {
11 TCA_CSUM_UNSPEC,
12 TCA_CSUM_PARMS,
13 TCA_CSUM_TM,
14 TCA_CSUM_PAD,
15 __TCA_CSUM_MAX
17 #define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1)
19 enum {
20 TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1,
21 TCA_CSUM_UPDATE_FLAG_ICMP = 2,
22 TCA_CSUM_UPDATE_FLAG_IGMP = 4,
23 TCA_CSUM_UPDATE_FLAG_TCP = 8,
24 TCA_CSUM_UPDATE_FLAG_UDP = 16,
25 TCA_CSUM_UPDATE_FLAG_UDPLITE = 32,
26 TCA_CSUM_UPDATE_FLAG_SCTP = 64,
29 struct tc_csum {
30 tc_gen;
32 __u32 update_flags;
35 #endif /* __LINUX_TC_CSUM_H */