lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221205122158.437522-1-jiri@resnulli.us>
Date:   Mon,  5 Dec 2022 13:21:54 +0100
From:   Jiri Pirko <jiri@...nulli.us>
To:     netdev@...r.kernel.org
Cc:     stephen@...workplumber.org, dsahern@...il.com, kuba@...nel.org,
        moshe@...dia.com, saeedm@...dia.com
Subject: [patch iproute2/net-next 0/4] devlink: optimize ifname handling

From: Jiri Pirko <jiri@...dia.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ