summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-02-12 00:12:06 +0000
committerDavid S. Miller <davem@davemloft.net>2013-02-12 18:59:45 -0500
commit0e243218bac42ebd0a9c19ceb0003410d302d008 (patch)
tree349b50998170157b46adbd5cc75c16423a664d20 /net/sched
parentb757c9336d63f94c6b57532bb4e8651d8b28786f (diff)
downloadlinux-0e243218bac42ebd0a9c19ceb0003410d302d008.tar.bz2
act_police: move struct tcf_police to act_police.c
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>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/act_police.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/sched/act_police.c b/net/sched/act_police.c
index 8dbd695c160b..378a6494ba5a 100644
--- a/net/sched/act_police.c
+++ b/net/sched/act_police.c
@@ -22,6 +22,21 @@
#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)