[RFC] Macro to sum DPCPU vars

From: Lawrence Stewart <lstewart_at_freebsd.org>
Date: Thu, 10 Jun 2010 13:54:53 +1000
Does anyone have objections to or feedback on the following patch? The 
macro simplifies the act of calculating an aggregate from DPCPU counters.

http://people.freebsd.org/~lstewart/patches/tcp_ffcaia2008/dpcpu_sum_9.x.r208900.patch

If anyone is curious how you would use it, take a look at:

http://people.freebsd.org/~lstewart/patches/tcp_ffcaia2008/siftr_9.x.r208900_v2.patch

and search for code that references the "siftr_stats" struct or "DPCPU".

I intend to commit the DPCPU patch in the next day or two.

Cheers,
Lawrence
Received on Thu Jun 10 2010 - 01:54:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC