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

From: Jakub Kicinski
Date: Wed Aug 14 2024 - 10:48:36 EST


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.