]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: use the correct handle flag for port param show
authorSaeed Mahameed <saeedm@nvidia.com>
Tue, 26 Nov 2024 09:08:28 +0000 (10:08 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 2 Dec 2024 19:19:26 +0000 (11:19 -0800)
commit413cf4f03a9b6a219c94b86f41d67992b0a14b82
tree2dd0762f3bbe7fad91902eec1e5af004d1d805ff
parent8c4918859e4ae589bfd6241a1d83902f6e76f6b3
devlink: use the correct handle flag for port param show

Port param show command arg parser used the devlink dev flag
instead of the port, which caused to not identify the port device
argument, causing the following error:

$ devlink port param show eth0 name link_type
Wrong identification string format.
Devlink identification ("bus_name/dev_name") expected

Use the correct the devlink handle flag.

Fixes: 70faecdca8f5 ("devlink: implement dump selector for devlink objects show commands")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c