From ee930fffee469d076998274a2ca55e13dc1efb67 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 08:50:54 +0000
Subject: [PATCH] enable tun/tap/iptables

---
 kernel/include/net/tc_act/tc_sample.h |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/kernel/include/net/tc_act/tc_sample.h b/kernel/include/net/tc_act/tc_sample.h
index 01dbfea..b5d7630 100644
--- a/kernel/include/net/tc_act/tc_sample.h
+++ b/kernel/include/net/tc_act/tc_sample.h
@@ -20,7 +20,7 @@
 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
@@ -39,12 +39,6 @@
 static inline int tcf_sample_trunc_size(const struct tc_action *a)
 {
 	return to_sample(a)->trunc_size;
-}
-
-static inline struct psample_group *
-tcf_sample_psample_group(const struct tc_action *a)
-{
-	return rcu_dereference(to_sample(a)->psample_group);
 }
 
 #endif /* __NET_TC_SAMPLE_H */

--
Gitblit v1.6.2