sch_prio: Use return value from inner qdisc requeue
Subsystems (3)
PATCH 1/1 sch_prio: Use return value from inner qdisc requeue
Use return value from inner qdisc requeue when value returned isn't NET_XMIT_SUCCESS, instead of always returning NET_XMIT_DROP.
Signed-off-by Jussi Kivilinna <[email protected]>
---
net/sched/sch_prio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/sch_prio.c +1 -1
@@ -117,7 +117,7 @@ prio_requeue(struct sk_buff *skb, struct Qdisc* sch) }if (net_xmit_drop_count (ret)) sch->qstats.drops++; -return NET_XMIT_DROP ; +return ret; }
From: Jussi Kivilinna <[email protected]>
Date: Fri, 08 Aug 2008 01:10:14 +0300
Quoted 4 lines
Use return value from inner qdisc requeue when value returned isn't
NET_XMIT_SUCCESS, instead of always returningNET_XMIT_DROP.Signed-off-by Jussi Kivilinna <[email protected]>
Applied, thanks Jussi.
I added the following followon patch afterwards:
sch_prio: Use NET_XMIT_SUCCESS instead of "0" constant.
Signed-off-by David S. Miller <[email protected]>
--- net/sched/sch_prio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/sch_prio.c +1 -1
@@ -113,7 +113,7 @@ prio_requeue(struct sk_buff *skb, struct Qdisc* sch)if ((ret = qdisc->ops->requeue (skb, qdisc)) ==NET_XMIT_SUCCESS ) { sch->q.qlen++; sch->qstats.requeues++; -return 0 ; +return NET_XMIT_SUCCESS ; }if (net_xmit_drop_count (ret)) sch->qstats.drops++;
Signature · 1 line
1.5.6.5.GIT