aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tc_act/tc_sample.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tc_act/tc_sample.h')
-rw-r--r--include/net/tc_act/tc_sample.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tc_act/tc_sample.h b/include/net/tc_act/tc_sample.h
index 01dbfea32672..0a559d4b6f0f 100644
--- a/include/net/tc_act/tc_sample.h
+++ b/include/net/tc_act/tc_sample.h
@@ -20,7 +20,7 @@ struct tcf_sample {
static inline bool is_tcf_sample(const struct tc_action *a)
{
#ifdef CONFIG_NET_CLS_ACT
- return a->ops && a->ops->type == TCA_ACT_SAMPLE;
+ return a->ops && a->ops->id == TCA_ID_SAMPLE;
#else
return false;
#endif