Merge tag 'chrome-platform-for-linus-4.13' of git://git.kernel.org/pub/scm/linux...
[linux/fpc-iii.git] / include / net / tc_act / tc_csum.h
blob3248beaf16b0513283cd3c863695a77d09793cdc
1 #ifndef __NET_TC_CSUM_H
2 #define __NET_TC_CSUM_H
4 #include <linux/types.h>
5 #include <net/act_api.h>
6 #include <linux/tc_act/tc_csum.h>
8 struct tcf_csum {
9 struct tc_action common;
11 u32 update_flags;
13 #define to_tcf_csum(a) ((struct tcf_csum *)a)
15 static inline bool is_tcf_csum(const struct tc_action *a)
17 #ifdef CONFIG_NET_CLS_ACT
18 if (a->ops && a->ops->type == TCA_ACT_CSUM)
19 return true;
20 #endif
21 return false;
24 static inline u32 tcf_csum_update_flags(const struct tc_action *a)
26 return to_tcf_csum(a)->update_flags;
29 #endif /* __NET_TC_CSUM_H */