Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103390
b: refs/heads/master
c: 68dfb42
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jul 9, 2008
1 parent eea685f commit d0c86e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 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: 816f3258e70db38d6d92c8d871377179fd69160f
refs/heads/master: 68dfb42798e1eb2d42acbf872925cc75f1487d9b
1 change: 0 additions & 1 deletion trunk/include/net/sch_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ struct Qdisc
struct gnet_stats_basic bstats;
struct gnet_stats_queue qstats;
struct gnet_stats_rate_est rate_est;
spinlock_t *stats_lock;
struct rcu_head q_rcu;
int (*reshape_fail)(struct sk_buff *skb,
struct Qdisc *q);
Expand Down
9 changes: 4 additions & 5 deletions trunk/net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ qdisc_create(struct net_device *dev, struct netdev_queue *dev_queue,

sch->parent = parent;

sch->stats_lock = &dev_queue->lock;
if (handle == TC_H_INGRESS) {
sch->flags |= TCQ_F_INGRESS;
handle = TC_H_MAKE(TC_H_INGRESS, 0);
Expand All @@ -622,7 +621,7 @@ qdisc_create(struct net_device *dev, struct netdev_queue *dev_queue,
if (!ops->init || (err = ops->init(sch, tca[TCA_OPTIONS])) == 0) {
if (tca[TCA_RATE]) {
err = gen_new_estimator(&sch->bstats, &sch->rate_est,
sch->stats_lock,
&sch->dev_queue->lock,
tca[TCA_RATE]);
if (err) {
/*
Expand Down Expand Up @@ -664,7 +663,7 @@ static int qdisc_change(struct Qdisc *sch, struct nlattr **tca)
}
if (tca[TCA_RATE])
gen_replace_estimator(&sch->bstats, &sch->rate_est,
sch->stats_lock, tca[TCA_RATE]);
&sch->dev_queue->lock, tca[TCA_RATE]);
return 0;
}

Expand Down Expand Up @@ -954,7 +953,7 @@ static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid,
q->qstats.qlen = q->q.qlen;

if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
TCA_XSTATS, q->stats_lock, &d) < 0)
TCA_XSTATS, &q->dev_queue->lock, &d) < 0)
goto nla_put_failure;

if (q->ops->dump_stats && q->ops->dump_stats(q, &d) < 0)
Expand Down Expand Up @@ -1203,7 +1202,7 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q,
goto nla_put_failure;

if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
TCA_XSTATS, q->stats_lock, &d) < 0)
TCA_XSTATS, &q->dev_queue->lock, &d) < 0)
goto nla_put_failure;

if (cl_ops->dump_stats && cl_ops->dump_stats(q, cl, &d) < 0)
Expand Down
1 change: 0 additions & 1 deletion trunk/net/sched/sch_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ struct Qdisc * qdisc_create_dflt(struct net_device *dev,
sch = qdisc_alloc(dev_queue, ops);
if (IS_ERR(sch))
goto errout;
sch->stats_lock = &dev_queue->lock;
sch->parent = parentid;

if (!ops->init || ops->init(sch, NULL) == 0)
Expand Down

0 comments on commit d0c86e6

Please sign in to comment.