On Thu, Aug 4, 2022 at 9:58 AM Adel Abouchaev adel.abushaev@gmail.com wrote:
Looking at https://github.com/shemminger/iproute2/blob/main/misc/ss.c#L589 the ss.c still uses proc/.
Only for legacy reasons.
ss -t for sure will use netlink first, then fallback to /proc
New counters should use netlink, please.
Adel.
On 8/4/22 8:29 AM, Andrew Lunn wrote:
On Wed, Aug 03, 2022 at 11:51:59AM -0700, Adel Abouchaev wrote:
Andrew,
Could you add more to your comment? The /proc was used similarly to kTLS.
Netlink is better, though, unsure how ULP stats would fit in it.
How do tools like ss(1) retrieve the protocol summary statistics? Do they still use /proc, or netlink?
Andrew