Skip to content

Extend uAPI with lanes parameter

Danielle Ratson netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyIn review
  2. v25 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Add a seperated patch, patch #1, for uapi headers and squash
* the rest of it to patch #2.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5update UAPI header copiesuapi/linux/ethtool.h uapi/linux/ethtool_netlink.h uapi/linux/if_link.h +2 more+26 -90 replies
2/5netlink: settings: Add netlink support for lanes parameterethtool.c netlink/desc-ethtool.c netlink/settings.c+9 -00 replies
3/5netlink: settings: Expose the number of lanes in usenetlink/settings.c+6 -00 replies
4/5shell-completion: Add completion for lanesshell-completion/bash/ethtool+4 -00 replies
5/5man: Add man page for setting lanes parameterethtool.8.in+4 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchJiri Pirko
1/5
2/5
3/5
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH ethtool v3 0/5] Extend uAPI with lanes parameter

Currently, there is no way of knowing how many lanes will be use to achieve a wanted speed.
For example, 100G speed can be achieved using: 2X50 or 4X25.

In order to solve that, extend ethtool uAPI with lanes as a new link mode setting so the command below, for example, will be supported:

$ ethtool -s swp5 lanes N

Patch #1: Update headers with the new parameter.
Patch #2: Support lanes in netlink.
Patch #3: Expose the number of lanes in use.
Patch #4: Add auto-completion for lanes.
Patch #5: Add lanes to man page.

v3:
* Add a seperated patch, patch #1, for uapi headers and squash
* the rest of it to patch #2.

Danielle Ratson (5):
update UAPI header copies
netlink: settings: Add netlink support for lanes parameter
netlink: settings: Expose the number of lanes in use
shell-completion: Add completion for lanes
man: Add man page for setting lanes parameter

 ethtool.8.in                  |  4 ++++
 ethtool.c                     |  1 +
 netlink/desc-ethtool.c        |  1 +
 netlink/settings.c            | 13 +++++++++++++
 shell-completion/bash/ethtool |  4 ++++
 uapi/linux/ethtool.h          |  2 +-
 uapi/linux/ethtool_netlink.h  |  1 +
 uapi/linux/if_link.h          | 10 ++++++++--
 uapi/linux/netlink.h          |  2 +-
 uapi/linux/rtnetlink.h        | 20 +++++++++++++++-----
 10 files changed, 49 insertions(+), 9 deletions(-)
Signature · 1 line
2.26.2