Skip to contentSkip to conversation

sch_prio: Use return value from inner qdisc requeue

PATCH Applied Jussi Kivilinna 2 participants 2 messages Aug 7, 2008 – Aug 18, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---

 net/sched/sch_prio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/sch_prio.c +1 -1
index eac1976..7cdc3e6 100644
@@ -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;
 }
 
 
maintainer Applied
#1 lore raw

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 returning NET_XMIT_DROP.

Applied, thanks Jussi.

I added the following followon patch afterwards:

sch_prio: Use NET_XMIT_SUCCESS instead of "0" constant.

---
 net/sched/sch_prio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/sch_prio.c +1 -1
index 7cdc3e6..a6697c6 100644
@@ -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