From: Jiri Pirko <j...@mellanox.com> Until now we had stats functions return SW statistics. However, it makes a lot of sense to return HW stats as default. The existing apps count with having the defaults stats complete, but that is not true now as the offloaded forward traffic is not visible there.
If user wants to know real SW stats, this patchset provides way to get it as well. Nogah Frankel (4): netdevice: add SW statistics ndo rtnetlink: add HW/SW stats distinction in rtnl_fill_stats net: core: add SW stats to if_stats_msg mlxsw: spectrum: Implement SW stats ndo and expose HW stats by default drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 65 ++++++++++++++++++++++---- include/linux/netdevice.h | 12 +++++ include/uapi/linux/if_link.h | 2 + net/core/dev.c | 25 ++++++++++ net/core/rtnetlink.c | 55 +++++++++++++++++++--- 5 files changed, 145 insertions(+), 14 deletions(-) -- 2.5.5