logo       

Re: [RFC] SNMP_ADD_STATS: msg#00072

Subject: Re: [RFC] SNMP_ADD_STATS
   From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>
   Date: Wed, 12 Jun 2002 15:23:48 -0300
   
   So I propose that we have
   
   #define SNMP_ADD_STATS(mib, field, incr) 
((mib)[2*smp_processor_id()+!in_softirq()].field += incr)
   
   and
   
   #define IP_ADD_STATS(field,incr) SNMP_ADD_STATS(ip_statistics, field, incr)
   
   Any objections?

No problem.



<Prev in Thread] Current Thread [Next in Thread>