mbox series

[ethtool,0/5] MAC Merge layer support

Message ID 20230111153638.1454687-1-vladimir.oltean@nxp.com (mailing list archive)
Headers show
Series MAC Merge layer support | expand

Message

Vladimir Oltean Jan. 11, 2023, 3:36 p.m. UTC
Add support for the following 2 new commands:

$ ethtool [ --include-statistics ] --show-mm <eth>
$ ethtool --set-mm <eth> [ ... ]

as well as for:

$ ethtool --include-statistics --show-pause <eth> --src pmac|emac|aggregate
$ ethtool --include-statistics --show-pause <eth> --src pmac|emac|aggregate
$ ethtool -S <eth> --groups eth-mac eth-phy eth-ctrl rmon -- --src pmac

This depends on kernel-level support which will be posted soon.

Vladimir Oltean (5):
  uapi: add kernel headers for MAC merge layer
  netlink: add support for MAC Merge layer
  netlink: pass the source of statistics for pause stats
  netlink: pass the source of statistics for port stats
  ethtool.8: update documentation with MAC Merge related bits

 Makefile.am                  |   2 +-
 ethtool.8.in                 |  57 ++++++++
 ethtool.c                    |  14 ++
 json_print.c                 |   4 +-
 netlink/desc-ethtool.c       |  29 ++++
 netlink/extapi.h             |   4 +
 netlink/mm.c                 | 270 +++++++++++++++++++++++++++++++++++
 netlink/netlink.h            |  34 +++++
 netlink/parser.c             |   6 +-
 netlink/parser.h             |   4 +
 netlink/pause.c              |  33 ++++-
 netlink/stats.c              |  14 ++
 uapi/linux/ethtool.h         |  43 ++++++
 uapi/linux/ethtool_netlink.h |  50 +++++++
 14 files changed, 553 insertions(+), 11 deletions(-)
 create mode 100644 netlink/mm.c