blob: a11bb355dbfb2ba9b65a2e2b6c2eac9dc3b0e6c0 [file] [log] [blame]
Grégoire Baroneb4d4062010-08-18 13:10:35 +00001#ifndef __LINUX_TC_CSUM_H
2#define __LINUX_TC_CSUM_H
3
4#include <linux/types.h>
5#include <linux/pkt_cls.h>
6
7#define TCA_ACT_CSUM 16
8
9enum {
10 TCA_CSUM_UNSPEC,
11 TCA_CSUM_PARMS,
12 TCA_CSUM_TM,
Nicolas Dichtel98545182016-04-26 10:06:18 +020013 TCA_CSUM_PAD,
Grégoire Baroneb4d4062010-08-18 13:10:35 +000014 __TCA_CSUM_MAX
15};
16#define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1)
17
18enum {
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,
Davide Carattic008b332017-01-09 11:24:21 +010024 TCA_CSUM_UPDATE_FLAG_UDPLITE = 32,
25 TCA_CSUM_UPDATE_FLAG_SCTP = 64,
Grégoire Baroneb4d4062010-08-18 13:10:35 +000026};
27
28struct tc_csum {
29 tc_gen;
30
31 __u32 update_flags;
32};
33
34#endif /* __LINUX_TC_CSUM_H */