act_police: move struct tcf_police to act_police.c
authorJiri Pirko <jiri@resnulli.us>
Tue, 12 Feb 2013 00:12:06 +0000 (00:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2013 23:59:45 +0000 (18:59 -0500)
It's not used anywhere else, so move it.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
net/sched/act_police.c

index 112c25c393a2e94c1c8a6c2339ce3849b50584aa..06ef7e926a66483633763a6079bd3ab5d8c40170 100644 (file)
@@ -35,21 +35,6 @@ struct tcf_common {
 #define tcf_lock       common.tcfc_lock
 #define tcf_rcu                common.tcfc_rcu
 
-struct tcf_police {
-       struct tcf_common       common;
-       int                     tcfp_result;
-       u32                     tcfp_ewma_rate;
-       u32                     tcfp_burst;
-       u32                     tcfp_mtu;
-       u32                     tcfp_toks;
-       u32                     tcfp_ptoks;
-       psched_time_t           tcfp_t_c;
-       struct qdisc_rate_table *tcfp_R_tab;
-       struct qdisc_rate_table *tcfp_P_tab;
-};
-#define to_police(pc)  \
-       container_of(pc, struct tcf_police, common)
-
 struct tcf_hashinfo {
        struct tcf_common       **htab;
        unsigned int            hmask;
index 8dbd695c160bc7c1e55c3d07a41d150b963dc032..378a6494ba5a781b10be63d6d263e9db036f8d0d 100644 (file)
 #include <net/act_api.h>
 #include <net/netlink.h>
 
+struct tcf_police {
+       struct tcf_common       common;
+       int                     tcfp_result;
+       u32                     tcfp_ewma_rate;
+       u32                     tcfp_burst;
+       u32                     tcfp_mtu;
+       u32                     tcfp_toks;
+       u32                     tcfp_ptoks;
+       psched_time_t           tcfp_t_c;
+       struct qdisc_rate_table *tcfp_R_tab;
+       struct qdisc_rate_table *tcfp_P_tab;
+};
+#define to_police(pc)  \
+       container_of(pc, struct tcf_police, common)
+
 #define L2T(p, L)   qdisc_l2t((p)->tcfp_R_tab, L)
 #define L2T_P(p, L) qdisc_l2t((p)->tcfp_P_tab, L)