]>
git.ipfire.org Git - thirdparty/kernel/stable.git/blob - include/net/tc_act/tc_gact.h
1 #ifndef __NET_TC_GACT_H
2 #define __NET_TC_GACT_H
4 #include <net/act_api.h>
5 #include <linux/tc_act/tc_gact.h>
8 struct tcf_common common
;
9 #ifdef CONFIG_GACT_PROB
16 #define to_gact(a) ((struct tcf_gact *)a)
18 static inline bool is_tcf_gact_shot(const struct tc_action
*a
)
20 #ifdef CONFIG_NET_CLS_ACT
21 struct tcf_gact
*gact
;
23 if (a
->ops
&& a
->ops
->type
!= TCA_ACT_GACT
)
27 if (gact
->tcf_action
== TC_ACT_SHOT
)
33 #endif /* __NET_TC_GACT_H */