]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net/sched: Remove unused functions
authorYue Haibing <yuehaibing@huawei.com>
Tue, 24 Jun 2025 01:43:27 +0000 (09:43 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Jun 2025 22:28:08 +0000 (15:28 -0700)
Since commit c54e1d920f04 ("flow_offload: add ops to tc_action_ops for
flow action setup") these are unused.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Link: https://patch.msgid.link/20250624014327.3686873-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tc_act/tc_csum.h
include/net/tc_act/tc_ct.h
include/net/tc_act/tc_gate.h
include/net/tc_act/tc_mpls.h
include/net/tc_act/tc_police.h
include/net/tc_act/tc_sample.h
include/net/tc_act/tc_vlan.h

index 68269e4581b766f850734cc1d7ff275622da6b88..2515da0142a671be82f873183077a12b5c8600b2 100644 (file)
@@ -18,15 +18,6 @@ struct tcf_csum {
 };
 #define to_tcf_csum(a) ((struct tcf_csum *)a)
 
-static inline bool is_tcf_csum(const struct tc_action *a)
-{
-#ifdef CONFIG_NET_CLS_ACT
-       if (a->ops && a->ops->id == TCA_ID_CSUM)
-               return true;
-#endif
-       return false;
-}
-
 static inline u32 tcf_csum_update_flags(const struct tc_action *a)
 {
        u32 update_flags;
index 77f87c622a2ef4c2ab7d19277fc95264ed28c9fb..e6b45cb27ebf43d6c937fd823767ac1cc9797524 100644 (file)
@@ -92,13 +92,4 @@ static inline void
 tcf_ct_flow_table_restore_skb(struct sk_buff *skb, unsigned long cookie) { }
 #endif
 
-static inline bool is_tcf_ct(const struct tc_action *a)
-{
-#if defined(CONFIG_NET_CLS_ACT) && IS_ENABLED(CONFIG_NF_CONNTRACK)
-       if (a->ops && a->ops->id == TCA_ID_CT)
-               return true;
-#endif
-       return false;
-}
-
 #endif /* __NET_TC_CT_H */
index c8fa11ebb3978ea8fbf379aa74c21509242f1781..c1a67149c6b62531cedab32b7bbbd267889b01f2 100644 (file)
@@ -51,15 +51,6 @@ struct tcf_gate {
 
 #define to_gate(a) ((struct tcf_gate *)a)
 
-static inline bool is_tcf_gate(const struct tc_action *a)
-{
-#ifdef CONFIG_NET_CLS_ACT
-       if (a->ops && a->ops->id == TCA_ID_GATE)
-               return true;
-#endif
-       return false;
-}
-
 static inline s32 tcf_gate_prio(const struct tc_action *a)
 {
        s32 tcfg_prio;
index 721de4f5733a9366d37457d8b7307d78ae2f4903..d452e5e94fd0f6dfaf9510d8722f79b62c6d69bb 100644 (file)
@@ -27,15 +27,6 @@ struct tcf_mpls {
 };
 #define to_mpls(a) ((struct tcf_mpls *)a)
 
-static inline bool is_tcf_mpls(const struct tc_action *a)
-{
-#ifdef CONFIG_NET_CLS_ACT
-       if (a->ops && a->ops->id == TCA_ID_MPLS)
-               return true;
-#endif
-       return false;
-}
-
 static inline u32 tcf_mpls_action(const struct tc_action *a)
 {
        u32 tcfm_action;
index 283bde711a425ff35000a71f0837aab477f0b1a3..490d88cb52338592f57e43fb79d1c6955a9684eb 100644 (file)
@@ -44,15 +44,6 @@ struct tc_police_compat {
        struct tc_ratespec      peakrate;
 };
 
-static inline bool is_tcf_police(const struct tc_action *act)
-{
-#ifdef CONFIG_NET_CLS_ACT
-       if (act->ops && act->ops->id == TCA_ID_POLICE)
-               return true;
-#endif
-       return false;
-}
-
 static inline u64 tcf_police_rate_bytes_ps(const struct tc_action *act)
 {
        struct tcf_police *police = to_police(act);
index b5d76305e8544cce7facafadee59534faae38199..abd163ca1864ab55c7592c49a3a477f9efbbb496 100644 (file)
@@ -17,15 +17,6 @@ struct tcf_sample {
 };
 #define to_sample(a) ((struct tcf_sample *)a)
 
-static inline bool is_tcf_sample(const struct tc_action *a)
-{
-#ifdef CONFIG_NET_CLS_ACT
-       return a->ops && a->ops->id == TCA_ID_SAMPLE;
-#else
-       return false;
-#endif
-}
-
 static inline __u32 tcf_sample_rate(const struct tc_action *a)
 {
        return to_sample(a)->rate;
index 904eddfc1826f1030f699a913dc0e1be6722a753..3f5e9242b5e83d082b8a633b3702feadd5672b47 100644 (file)
@@ -26,15 +26,6 @@ struct tcf_vlan {
 };
 #define to_vlan(a) ((struct tcf_vlan *)a)
 
-static inline bool is_tcf_vlan(const struct tc_action *a)
-{
-#ifdef CONFIG_NET_CLS_ACT
-       if (a->ops && a->ops->id == TCA_ID_VLAN)
-               return true;
-#endif
-       return false;
-}
-
 static inline u32 tcf_vlan_action(const struct tc_action *a)
 {
        u32 tcfv_action;