tech-net archive

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

Re: Per-cpu stats for network interfaces



> On Jan 28, 2020, at 8:34 AM, Taylor R Campbell <campbell+netbsd-tech-net%mumble.net@localhost> wrote:
> 
> Can you make it `struct if_stat_ref *' instead of `net_stat_ref_t'?
> That way it can still be opaque but there's no need to include an
> extra header file for even the opaque uses of it, and nobody can ever
> agree on or remember whether mumble_t means a mumble or a pointer to a
> mumble.

It's not a struct, and I intend to clean up the rest of the net_stats infrastructure to use it.  (I include <net/net_stats.h> already because all of this is built on top of that, which already exists...)

-- thorpej



Home | Main Index | Thread Index | Old Index