Re: [PATCH] sched: QFQ - quick fair queue scheduler (v2)

Eric Dumazet
2011-03-02T15:41:26Z

Le lundi 28 février 2011 à 17:17 -0800, Stephen Hemminger a écrit :

> --- a/include/linux/pkt_sched.h 2011-02-28 13:28:57.763177314 -0800
> +++ b/include/linux/pkt_sched.h 2011-02-28 13:29:10.466792117 -0800
> @@ -588,4 +588,18 @@ struct tc_sfb_xstats {
>
> #define SFB_MAX_PROB 0xFFFF
>
> +/* QFQ */
> +enum {

+ TCA_QFQ_UNSPEC,

> + TCA_QFQ_WEIGHT,
> + TCA_QFQ_LMAX,
> + __TCA_QFQ_MAX
> +};
> +
> +#define TCA_QFQ_MAX (__TCA_QFQ_MAX - 1)
> +

With TCA_QFQ_UNSPEC bit (and mirror the change in iproute2), it seems to
work better.

Oh wait, I had a crash in qfq_reset_qdisc() when re-running my setup
script.