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

From: Eric Dumazet <[email-masked]>
Date: Thu, 14 Jan 2010 13:50:51 +0100

Le 14/01/2010 12:50, Torsten Schmidt a écrit :
.
> Our company is more interested in IP DiffServ traffic accounting.
> So we simply need a fast mechanism which generates IP DiffServ traffic
> statistics, without setting the network interface in promiscuous mode,
> (which softflowd ore tcpdump does).

tcpdump can work in non promiscuous mode (-p). Anyway, switched networks makes
promiscuous a non issue nowaday.

> 
> So first idea was to implement a virtual file e.g. called /proc/net/ip_dscp.
> If the main line peoples are not interested in, i will no longer send these
> patches. 

Problem is, you might need many sets of counters...

1) General (for each net namespace ...)
2) Per interface
3) Per protocol ?

For performance reasons, SNMP counters are per cpu, so each set would be very large.

In any case, dont add yet another /proc/net file, this is considered as a hacky way to do
these things today.

Thanks