/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __NET_TC_SAMPLE_H #define __NET_TC_SAMPLE_H #include <net/act_api.h> #include <linux/tc_act/tc_sample.h> #include <net/psample.h> struct tcf_sample { … }; #define to_sample(a) … static inline bool is_tcf_sample(const struct tc_action *a) { … } static inline __u32 tcf_sample_rate(const struct tc_action *a) { … } static inline bool tcf_sample_truncate(const struct tc_action *a) { … } static inline int tcf_sample_trunc_size(const struct tc_action *a) { … } #endif /* __NET_TC_SAMPLE_H */