netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch iproute2/net-next 0/4] devlink: optimize ifname handling
@ 2022-12-05 12:21 Jiri Pirko
  2022-12-05 12:21 ` [patch iproute2/net-next 1/4] devlink: add ifname_map_add/del() helpers Jiri Pirko
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jiri Pirko @ 2022-12-05 12:21 UTC (permalink / raw)
  To: netdev; +Cc: stephen, dsahern, kuba, moshe, saeedm

From: Jiri Pirko <jiri@nvidia.com>

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

-- 
2.37.3


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

end of thread, other threads:[~2022-12-08 19:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-05 12:21 [patch iproute2/net-next 0/4] devlink: optimize ifname handling Jiri Pirko
2022-12-05 12:21 ` [patch iproute2/net-next 1/4] devlink: add ifname_map_add/del() helpers Jiri Pirko
2022-12-05 12:21 ` [patch iproute2/net-next 2/4] devlink: get devlink port for ifname using RTNL get link command Jiri Pirko
2022-12-08 19:00   ` Jacob Keller
2022-12-05 12:21 ` [patch iproute2/net-next 3/4] devlink: push common code to __pr_out_port_handle_start_tb() Jiri Pirko
2022-12-05 12:21 ` [patch iproute2/net-next 4/4] devlink: update ifname map when message contains DEVLINK_ATTR_PORT_NETDEV_NAME Jiri Pirko
2022-12-08 17:50 ` [patch iproute2/net-next 0/4] devlink: optimize ifname handling patchwork-bot+netdevbpf

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