.. | .. |
---|
20 | 20 | static inline bool is_tcf_sample(const struct tc_action *a) |
---|
21 | 21 | { |
---|
22 | 22 | #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; |
---|
24 | 24 | #else |
---|
25 | 25 | return false; |
---|
26 | 26 | #endif |
---|
.. | .. |
---|
39 | 39 | static inline int tcf_sample_trunc_size(const struct tc_action *a) |
---|
40 | 40 | { |
---|
41 | 41 | 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); |
---|
48 | 42 | } |
---|
49 | 43 | |
---|
50 | 44 | #endif /* __NET_TC_SAMPLE_H */ |
---|