On 8/21/20 6:37 PM, Jakub Kicinski wrote: >>> # cat /proc/net/tls_stat >> >> I do not agree with adding files under /proc/net for this. > > Yeah it's not the best, with higher LoC a better solution should be > within reach.
The duplicity here is mind-boggling. Tls stats from hardware is on par with Ido's *example* of vxlan stats from an ASIC. You agree that /proc/net files are wrong, but you did it anyway and now you want the next person to solve the problem you did not want to tackle but have strong opinions on. Ido has a history of thinking through problems and solutions in a proper Linux Way. netlink is the right API, and devlink was created for 'device' stuff versus 'netdev' stuff. Hence, I agree with this *framework* for extracting asic stats.