Skip to contentSkip to conversation

: pkt_sched: Remove RR scheduler.

PATCH New David Miller 1 participant 1 message Jul 3, 2008

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

PATCH 1/39 : pkt_sched: Remove RR scheduler.

This actually fixes a bug added by the RR scheduler changes. The ->bands and ->prio2band parameters were being set outside of the sch_tree_lock() and thus could result in strange behavior and inconsistencies.

It might be possible, in the new design (where there will be one qdisc per device TX queue) to allow similar functionality via a TX hash algorithm for RR but I really see no reason to export this aspect of how these multiqueue cards actually implement the scheduling of the the individual DMA TX rings and the single physical MAC/PHY port.

---
 include/linux/pkt_sched.h |    9 ---
 net/sched/sch_prio.c      |  130 +++++---------------------------------------
 2 files changed, 15 insertions(+), 124 deletions(-)
include/linux/pkt_sched.h +0 -9
index dbb7ac3..87f4e0f 100644
@@ -103,15 +103,6 @@ struct tc_prio_qopt
 	__u8	priomap[TC_PRIO_MAX+1];	/* Map: logical priority -> PRIO band */
 };
 
-enum
-{
-	TCA_PRIO_UNSPEC,
-	TCA_PRIO_MQ,
-	__TCA_PRIO_MAX
-};
-
-#define TCA_PRIO_MAX    (__TCA_PRIO_MAX - 1)
-
 /* TBF section */
 
 struct tc_tbf_qopt
net/sched/sch_prio.c +14 -105

178 lines not on this page · raw message