hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/net/tc_act/tc_sample.h
....@@ -20,7 +20,7 @@
2020 static inline bool is_tcf_sample(const struct tc_action *a)
2121 {
2222 #ifdef CONFIG_NET_CLS_ACT
23
- return a->ops && a->ops->type == TCA_ACT_SAMPLE;
23
+ return a->ops && a->ops->id == TCA_ID_SAMPLE;
2424 #else
2525 return false;
2626 #endif
....@@ -39,12 +39,6 @@
3939 static inline int tcf_sample_trunc_size(const struct tc_action *a)
4040 {
4141 return to_sample(a)->trunc_size;
42
-}
43
-
44
-static inline struct psample_group *
45
-tcf_sample_psample_group(const struct tc_action *a)
46
-{
47
- return rcu_dereference(to_sample(a)->psample_group);
4842 }
4943
5044 #endif /* __NET_TC_SAMPLE_H */