--- zzzz-none-000/linux-4.9.276/net/sched/act_police.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/net/sched/act_police.c 2023-04-05 08:19:02.000000000 +0000 @@ -21,37 +21,8 @@ #include #include #include - -struct tcf_police { - struct tc_action common; - int tcfp_result; - u32 tcfp_ewma_rate; - s64 tcfp_burst; - u32 tcfp_mtu; - s64 tcfp_toks; - s64 tcfp_ptoks; - s64 tcfp_mtu_ptoks; - s64 tcfp_t_c; - struct psched_ratecfg rate; - bool rate_present; - struct psched_ratecfg peak; - bool peak_present; -}; - -#define to_police(pc) ((struct tcf_police *)pc) - -#define POL_TAB_MASK 15 - -/* old policer structure from before tc actions */ -struct tc_police_compat { - u32 index; - int action; - u32 limit; - u32 burst; - u32 mtu; - struct tc_ratespec rate; - struct tc_ratespec peakrate; -}; +#include +#include /* Each policer is serialized by its individual spinlock */