On Mon, 16 Nov 2020 15:30:39 -0800 Florian Fainelli wrote: > > What about RMON/RFC2819 style etherStatsPkts65to127Octets? We have a > > number of switches supporting that style of counters, including the one > > that Oleksij is adding support for, apparently (but not all switches > > though). I suppose your M.O. is that anything standardizable is welcome > > to be standardized via rtnetlink? > > > > Andrew, Florian, any opinions here? > > Settling on RMON/RFC2819 statistics would work for me, and hopefully is > not too hard to get the various drivers converted to. That would be grate! For RMON stats you may have slightly more legwork to do on ethtool side, since IIRC the plumbing for stats over netlink is (intentionally?) not there until we settle on how to handle standardize-able counters. I've only done pause stats 'cause those and FEC are the primary HW stats my employer cares about :) I'm sure people would actually find use for the RMON stats once they get standardized tho! > With respect to Oleksij's patch, I would tend to accept it so we > actually have more visibility into what standardized counters are > available across switch drivers. For a while now we have been pushing back on stats which have a proper interface to be added to ethtool -S. So I'd expect the list of stats exposed via ethtool will end up being shorter than in this patch.