netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ethtool v3 0/7] pause frame stats
@ 2020-10-18 21:31 Jakub Kicinski
  2020-10-18 21:31 ` [PATCH ethtool v3 1/7] update UAPI header copies Jakub Kicinski
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Jakub Kicinski @ 2020-10-18 21:31 UTC (permalink / raw)
  To: mkubecek; +Cc: netdev, kernel-team, idosch, Jakub Kicinski

Hi!

Sorry about the delay from v2.


This set adds support for pause frame statistics.

First pause frame info is extended to support --json.

Pause stats are first of this kind of statistics so add
support for a new flag (--include-statistics).

Next add support for dumping policy to check if the statistics
flag is supported for a given subcommand.

Last but not least - display statistics.

v3:
 - rename the ctx variable to policy_ctx
 - instead of returning the flags policy save it to a member
   of struct nl_context, for potential reuse. Also we don't
   have to worry about returning flags and negative errors
   from the read helper this way :)

Jakub Kicinski (7):
  update UAPI header copies
  pause: add --json support
  separate FLAGS out in -h
  add support for stats in subcommands
  netlink: prepare for more per-op info
  netlink: use policy dumping to check if stats flag is supported
  pause: add support for dumping statistics

 ethtool.8.in           |   7 ++
 ethtool.c              |  17 +++-
 internal.h             |   1 +
 netlink/coalesce.c     |   6 +-
 netlink/msgbuff.h      |   6 ++
 netlink/netlink.c      | 179 ++++++++++++++++++++++++++++++++++++++---
 netlink/netlink.h      |  31 +++++--
 netlink/pause.c        | 111 ++++++++++++++++++++++---
 uapi/linux/genetlink.h |  11 +++
 uapi/linux/netlink.h   |   4 +
 10 files changed, 336 insertions(+), 37 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-10-19 11:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-18 21:31 [PATCH ethtool v3 0/7] pause frame stats Jakub Kicinski
2020-10-18 21:31 ` [PATCH ethtool v3 1/7] update UAPI header copies Jakub Kicinski
2020-10-18 21:31 ` [PATCH ethtool v3 2/7] pause: add --json support Jakub Kicinski
2020-10-18 21:31 ` [PATCH ethtool v3 3/7] separate FLAGS out in -h Jakub Kicinski
2020-10-18 21:31 ` [PATCH ethtool v3 4/7] add support for stats in subcommands Jakub Kicinski
2020-10-18 21:31 ` [PATCH ethtool v3 5/7] netlink: prepare for more per-op info Jakub Kicinski
2020-10-18 21:31 ` [PATCH ethtool v3 6/7] netlink: use policy dumping to check if stats flag is supported Jakub Kicinski
2020-10-18 21:31 ` [PATCH ethtool v3 7/7] pause: add support for dumping statistics Jakub Kicinski
2020-10-19 11:11 ` [PATCH ethtool v3 0/7] pause frame stats Michal Kubecek

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).