Subject: Re: [PATCH] ipv4: add DiffServ priority based routing

From: Eric Dumazet <[email-masked]>
Date: Fri, 15 Jan 2010 09:24:36 +0100

Le 15/01/2010 01:51, David Miller a écrit :
> From: Eric Dumazet <[email-masked]>
> Date: Thu, 14 Jan 2010 13:50:51 +0100
> 
>> Problem is, you might need many sets of counters...
> 
> Why nobody has suggested using existing kernel facilities for this is
> beyond me.
> 
> We have a diffserv packet scheduler queueing discipline, so you can
> classify traffic arbitrarily based upon the diffserv bits in the
> packet and then shape them using that classification into different
> packet scheduler queues.
> 
> Simply attach those child queues to that default pfifo qdisc, nothing
> fancy.
> 
> Then you can dump the queue stats using 'tc'.

Well, its a good idea but it has drawbacks, for example if your eth0 device
has 64 tx queues. Parsing tc output can be... interesting :)