Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src




On Apr 6, 2008, at 11:50 PM, Daniel Carosone wrote:
On Mon, Apr 07, 2008 at 06:31:28AM +0000, Jason R Thorpe wrote:
Log Message:
Change IP stats from a structure to an array of uint64_t's.

What's the intent and benefit of these changes, out of interest?

These counters are going to become per-CPU in a short while (I actually have that work done in a separate tree already). As part of that work, I wanted to add an ABI-stable way for LKMs or other things that are not the guts of the netinet implementation to increment these stats. Having to address a stat as an offset into a structure is cumbersome for this; using an index is much better.




--
Dan.

-- thorpej



Home | Main Index | Thread Index | Old Index