[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241126090828.3185365-3-jiri@resnulli.us>
Date: Tue, 26 Nov 2024 10:08:28 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: stephen@...workplumber.org,
dsahern@...il.com,
saeedm@...dia.com
Subject: [PATCH iproute2 2/2] devlink: use the correct handle flag for port param show
From: Saeed Mahameed <saeedm@...dia.com>
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@...dia.com>
Signed-off-by: Jiri Pirko <jiri@...dia.com>
---
devlink/devlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/devlink/devlink.c b/devlink/devlink.c
index f4e90b804fb6..5711974f2cb0 100644
--- a/devlink/devlink.c
+++ b/devlink/devlink.c
@@ -5088,7 +5088,7 @@ static int cmd_port_param_show(struct dl *dl)
err = dl_argv_parse_with_selector(dl, &flags,
DEVLINK_CMD_PORT_PARAM_GET,
- DL_OPT_HANDLE | DL_OPT_PARAM_NAME, 0,
+ DL_OPT_HANDLEP | DL_OPT_PARAM_NAME, 0,
DL_OPT_HANDLE | DL_OPT_HANDLEP, 0);
if (err)
return err;
--
2.47.0
Powered by blists - more mailing lists