Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / include / uapi / linux / tc_act / tc_csum.h
blob8ac8041ab5f134b74391f5470cef16f3f435ed1c
1 #ifndef __LINUX_TC_CSUM_H
2 #define __LINUX_TC_CSUM_H
4 #include <linux/types.h>
5 #include <linux/pkt_cls.h>
7 #define TCA_ACT_CSUM 16
9 enum {
10 TCA_CSUM_UNSPEC,
11 TCA_CSUM_PARMS,
12 TCA_CSUM_TM,
13 TCA_CSUM_PAD,
14 __TCA_CSUM_MAX
16 #define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1)
18 enum {
19 TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1,
20 TCA_CSUM_UPDATE_FLAG_ICMP = 2,
21 TCA_CSUM_UPDATE_FLAG_IGMP = 4,
22 TCA_CSUM_UPDATE_FLAG_TCP = 8,
23 TCA_CSUM_UPDATE_FLAG_UDP = 16,
24 TCA_CSUM_UPDATE_FLAG_UDPLITE = 32
27 struct tc_csum {
28 tc_gen;
30 __u32 update_flags;
33 #endif /* __LINUX_TC_CSUM_H */