Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352422
b: refs/heads/master
c: 0e24321
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Feb 12, 2013
1 parent 8caf86c commit 7c7c7db
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b757c9336d63f94c6b57532bb4e8651d8b28786f
refs/heads/master: 0e243218bac42ebd0a9c19ceb0003410d302d008
15 changes: 0 additions & 15 deletions trunk/include/net/act_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
15 changes: 15 additions & 0 deletions trunk/net/sched/act_police.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7c7c7db

Please sign in to comment.