netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2 v3 0/4] update ifstat for new stats
@ 2016-12-22 16:23 Nogah Frankel
  2016-12-22 16:23 ` [PATCH iproute2 v3 1/4] ifstat: Includes reorder Nogah Frankel
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Nogah Frankel @ 2016-12-22 16:23 UTC (permalink / raw)
  To: netdev
  Cc: stephen, roopa, roszenrami, ogerlitz, jiri, eladr, yotamg, idosch,
	Nogah Frankel

Previously stats were gotten by RTM_GETLINK which returns 32 bits based
statistics. It supports only one type of stats.
Lately, a new method to get stats was added - RTM_GETSTATS. It supports
ability to choose stats type. The basic stats were changed from 32 bits
based to 64 bits based.

This patchset adds ifstat the ability to get extended stats by this
method. Its adds two types of extended stats:
64bits - the same as the "normal" stats but get the stats from the cpu
in 64 bits based struct.
SW - for packets that hit cpu.

---
v2->v3:
- patch 1/4:
 - add a new patch to reorder includes in misc/ifstat.c
- patch 2/4: (previously 1/3)
 - fix typos.
 - change error print to use fprintf.

v1->v2:
 - change from using RTM_GETSTATS always to using it only for extended
   stats.
 - Add 64bits extended stats type.

Nogah Frankel (4):
  ifstat: Includes reorder
  ifstat: Add extended statistics to ifstat
  ifstat: Add 64 bits based stats to extended statistics
  ifstat: Add "sw only" extended statistics to ifstat

 misc/ifstat.c | 171 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 153 insertions(+), 18 deletions(-)

-- 
2.4.3

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-12-25 11:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-22 16:23 [PATCH iproute2 v3 0/4] update ifstat for new stats Nogah Frankel
2016-12-22 16:23 ` [PATCH iproute2 v3 1/4] ifstat: Includes reorder Nogah Frankel
2016-12-22 16:23 ` [PATCH iproute2 v3 2/4] ifstat: Add extended statistics to ifstat Nogah Frankel
2016-12-22 18:59   ` Stephen Hemminger
2016-12-25 10:25     ` Nogah Frankel
2016-12-22 16:23 ` [PATCH iproute2 v3 3/4] ifstat: Add 64 bits based stats to extended statistics Nogah Frankel
2016-12-22 16:23 ` [PATCH iproute2 v3 4/4] ifstat: Add "sw only" extended statistics to ifstat Nogah Frankel
2016-12-22 21:10   ` Roopa Prabhu
2016-12-25 11:23     ` Nogah Frankel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).