Re: [PATCH net-next v2 1/2] net/smc: introduce statistics for allocated ringbufs of link group

Jakub Kicinski
2024-08-14T14:48:27Z

On Wed, 14 Aug 2024 11:12:41 +0800 Wen Gu wrote:
> > Danielle added one to libmnl:
> >
> > https://git.netfilter.org/libmnl/commit/?id=102942be401a99943b2c68981b238dadfa788f2d
> >
> > Intention is to use it in ethtool once it appears in a released version
> > of libmnl.
>
> Thanks, that is a good example.

FWIW - technically the kernel version of a uint / sint are only either
32b or 64b, because smaller types get padded to 4bytes in netlink
messages, anyway. But doesn't hurt for the get. For the put make sure
you don't narrow down too much.