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: <20250704045427.1558605-1-saeed@kernel.org>
Date: Thu,  3 Jul 2025 21:54:18 -0700
From: Saeed Mahameed <saeed@...nel.org>
To: stephen@...workplumber.org,
	dsahern@...il.com,
	Jiri Pirko <jiri@...dia.com>
Cc: netdev@...r.kernel.org,
	Saeed Mahameed <saeedm@...dia.com>
Subject: [PATCH iproute2 V2 0/9] devlink params nested multi-attribute values

From: Saeed Mahameed <saeedm@...dia.com>

v1->v2:
  - Rebased on latest devlink kernel API.
  - Use var attributes enum instead of dynamic attributes enum.

This patch series reworks devlink parameters and introduces support for nested
multi attributes values. It also adds support for showing and setting port
parameters with multi-attribute value data.

example:
     $ devlink dev param show pci/... name multi-value-param
        name multi-value-param type driver-specific
        values:
          cmode permanent value: 0,1,2,3,4,5,6,7

     $ devlink dev param set pci/... name multi-value-param \
            value 4,5,6,7,0,1,2,3 cmode permanent

Please look out for the downstream kernel patches that will be posted
immediately after this series.

Title: "[PATCH net-next V4 00/13] devlink, mlx5: Add new parameters for link management and SRIOV/eSwitch configurations"

Thanks,
Saeed


Jiri Pirko (1):
  devlink: use var attributes enum

Saeed Mahameed (8):
  devlink: param show: handle multi-attribute values
  devlink: param set: reuse cmd_dev_param_set_cb for port params set
  devlink: rename param_ctx to dl_param
  devlink: helper function to read user param input into dl_param
  devlink: helper function to compare dl_params
  devlink: helper function to put param value mnl attributes from
    dl_params
  devlink: helper function to parse param vlaue attributes into dl_param
  devlink: params set: add support for nested attributes values

 devlink/devlink.c            | 689 ++++++++++++++++++++---------------
 include/uapi/linux/devlink.h |   1 +
 2 files changed, 405 insertions(+), 285 deletions(-)

-- 
2.50.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ