diff options
| -rw-r--r-- | include/net/pkt_sched.h | 2 | ||||
| -rw-r--r-- | net/sched/sch_api.c | 2 | ||||
| -rw-r--r-- | net/sched/sch_drr.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 891d80d2c4d2..ec030cd76616 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
| @@ -96,7 +96,7 @@ struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, | |||
| 96 | struct nlattr *tab); | 96 | struct nlattr *tab); |
| 97 | void qdisc_put_rtab(struct qdisc_rate_table *tab); | 97 | void qdisc_put_rtab(struct qdisc_rate_table *tab); |
| 98 | void qdisc_put_stab(struct qdisc_size_table *tab); | 98 | void qdisc_put_stab(struct qdisc_size_table *tab); |
| 99 | void qdisc_warn_nonwc(char *txt, struct Qdisc *qdisc); | 99 | void qdisc_warn_nonwc(const char *txt, struct Qdisc *qdisc); |
| 100 | int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q, | 100 | int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q, |
| 101 | struct net_device *dev, struct netdev_queue *txq, | 101 | struct net_device *dev, struct netdev_queue *txq, |
| 102 | spinlock_t *root_lock); | 102 | spinlock_t *root_lock); |
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index fd14df56e5ff..58bed7599db7 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
| @@ -563,7 +563,7 @@ out: | |||
| 563 | } | 563 | } |
| 564 | EXPORT_SYMBOL(__qdisc_calculate_pkt_len); | 564 | EXPORT_SYMBOL(__qdisc_calculate_pkt_len); |
| 565 | 565 | ||
| 566 | void qdisc_warn_nonwc(char *txt, struct Qdisc *qdisc) | 566 | void qdisc_warn_nonwc(const char *txt, struct Qdisc *qdisc) |
| 567 | { | 567 | { |
| 568 | if (!(qdisc->flags & TCQ_F_WARN_NONWC)) { | 568 | if (!(qdisc->flags & TCQ_F_WARN_NONWC)) { |
| 569 | pr_warn("%s: %s qdisc %X: is non-work-conserving?\n", | 569 | pr_warn("%s: %s qdisc %X: is non-work-conserving?\n", |
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c index 8302717ea303..7bbbfe112192 100644 --- a/net/sched/sch_drr.c +++ b/net/sched/sch_drr.c | |||
| @@ -391,8 +391,10 @@ static struct sk_buff *drr_dequeue(struct Qdisc *sch) | |||
| 391 | while (1) { | 391 | while (1) { |
| 392 | cl = list_first_entry(&q->active, struct drr_class, alist); | 392 | cl = list_first_entry(&q->active, struct drr_class, alist); |
| 393 | skb = cl->qdisc->ops->peek(cl->qdisc); | 393 | skb = cl->qdisc->ops->peek(cl->qdisc); |
| 394 | if (skb == NULL) | 394 | if (skb == NULL) { |
| 395 | qdisc_warn_nonwc(__func__, cl->qdisc); | ||
| 395 | goto out; | 396 | goto out; |
| 397 | } | ||
| 396 | 398 | ||
| 397 | len = qdisc_pkt_len(skb); | 399 | len = qdisc_pkt_len(skb); |
| 398 | if (len <= cl->deficit) { | 400 | if (len <= cl->deficit) { |
