Skip to content

devlink: optimize ifname handling

Jiri Pirko netdev 1 version Applied

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

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4devlink: add ifname_map_add/del() helpersdevlink/devlink.c+23 -70 replies
2/4devlink: get devlink port for ifname using RTNL get link commanddevlink/devlink.c+91 -51 reply
3/4devlink: push common code to __pr_out_port_handle_start_tb()devlink/devlink.c+9 -100 replies
4/4devlink: update ifname map when message contains DEVLINK_ATTR_PORT_NETDEV_NAMEdevlink/devlink.c+28 -60 replies

Reviews trailers per patch

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

PatchJacob Keller
1/4
2/4R-b
3/4
4/4

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

Read the v1 thread

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