[patch net-next 3/4] net: core: add SW stats to if_stats_msg

2016-05-12 Thread Jiri Pirko
From: Nogah Frankel If there is a dedicated ndo to return SW stats - use it. Otherwise (indicates that there is no HW stats) use the default stats ndo. Return results under IFLA_STATS_LINK_SW_64. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- v1->v2: - fi

Re: [patch net-next 3/4] net: core: add SW stats to if_stats_msg

2016-05-12 Thread Jiri Pirko
Thu, May 12, 2016 at 01:33:11PM CEST, niko...@cumulusnetworks.com wrote: > >> On May 12, 2016, at 12:59 PM, Jiri Pirko wrote: >> >> From: Nogah Frankel >> >> If there is a dedicated ndo to return SW stats - use >> it. Otherwise (indicates that there is no HW stats) use >> the default stats ndo.

Re: [patch net-next 3/4] net: core: add SW stats to if_stats_msg

2016-05-12 Thread Nikolay Aleksandrov
> On May 12, 2016, at 12:59 PM, Jiri Pirko wrote: > > From: Nogah Frankel > > If there is a dedicated ndo to return SW stats - use > it. Otherwise (indicates that there is no HW stats) use > the default stats ndo. > Return results under IFLA_STATS_LINK_SW_64. > > Signed-off-by: Nogah Frankel

[patch net-next 3/4] net: core: add SW stats to if_stats_msg

2016-05-12 Thread Jiri Pirko
From: Nogah Frankel If there is a dedicated ndo to return SW stats - use it. Otherwise (indicates that there is no HW stats) use the default stats ndo. Return results under IFLA_STATS_LINK_SW_64. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- include/uap