]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Merge branch 'devlink-dump-selector' into next
authorDavid Ahern <dsahern@kernel.org>
Mon, 11 Sep 2023 15:19:48 +0000 (09:19 -0600)
committerDavid Ahern <dsahern@kernel.org>
Mon, 11 Sep 2023 15:19:48 +0000 (09:19 -0600)
commit9e6ca8d0d62302a0667b3a048674de79b7eb2da2
treeae69e1e2fe5440a25b619a9c8327707ae0022294
parentdd5b1f585bf627d4bf4375b0764baa6a6de9d9bb
parent70faecdca8f5187d2bc5ee95e4b6a01a50a2c916
Merge branch 'devlink-dump-selector' into next

Jiri Pirko  says:

====================

From: Jiri Pirko <jiri@nvidia.com>

First 5 patches are preparations for the last one.

Motivation:

For SFs, one devlink instance per SF is created. There might be
thousands of these on a single host. When a user needs to know port
handle for specific SF, he needs to dump all devlink ports on the host
which does not scale good.

Solution:

Allow user to pass devlink handle (and possibly other attributes)
alongside the dump command and dump only objects which are matching
the selection.

Example:
$ devlink port show
auxiliary/mlx5_core.eth.0/65535: type eth netdev eth2 flavour physical port 0 splittable false
auxiliary/mlx5_core.eth.1/131071: type eth netdev eth3 flavour physical port 1 splittable false

$ devlink port show auxiliary/mlx5_core.eth.0
auxiliary/mlx5_core.eth.0/65535: type eth netdev eth2 flavour physical port 0 splittable false

$ devlink port show auxiliary/mlx5_core.eth.1
auxiliary/mlx5_core.eth.1/131071: type eth netdev eth3 flavour physical port 1 splittable false

====================

Signed-off-by: David Ahern <dsahern@kernel.org>