devlink: optimize ifname handling
Status from this message: This series was applied to iproute2/iproute2-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | devlink: add ifname_map_add/del() helpersdevlink/ | +23 | 0 replies | |
| 2/4 | devlink: get devlink port for ifname using RTNL get link commanddevlink/ | +91 | 1 reply | |
| 3/4 | devlink: push common code to __pr_out_port_handle_start_tb()devlink/ | +9 | 0 replies | |
| 4/4 | devlink: update ifname map when message contains DEVLINK_ATTR_PORT_NETDEV_NAMEdevlink/ | +28 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Jacob Keller |
|---|---|
| 1/4 | |
| 2/4 | R-b |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch iproute2/net-next 0/4] devlink: optimize ifname handling
From: Jiri Pirko <[email protected]>
This patchset enhances devlink tool to benefit from two recently introduces netlink changes in kernel:
patch #2:
Benefits from RT netlink extension by IFLA_DEVLINK_PORT attribute. Kernel sends devlink port handle info for every netdev. Use this attribute to directly obtain devlink port handle for ifname passed by user as a command line option.
patch #4:
Benefit from the fact that kernel sends PORT_NEW event on devlink netlink whenever related netdevice ifname changes. Use that to make the printed out ifname up-to-date when running devlink monitor command.
patches #1 and #3 are just small dependencies of the patched above.
Jiri Pirko (4):
devlink: add ifname_map_add/del() helpers
devlink: get devlink port for ifname using RTNL get link command
devlink: push common code to __pr_out_port_handle_start_tb()
devlink: update ifname map when message contains
DEVLINK_ATTR_PORT_NETDEV_NAME
devlink/devlink.c | 177 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 150 insertions(+), 27 deletions(-)
Signature · 1 line
2.37.3