]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
devlink: spell out STATE in devlink port function help
authorJiri Pirko <jiri@nvidia.com>
Mon, 14 Aug 2023 07:29:01 +0000 (09:29 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 19 Aug 2023 16:13:36 +0000 (09:13 -0700)
Be in-sync with port help and port man page and spell out the possible
states instead of "STATE".

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c

index 26513142f90048902c222cc8d1d5156b1602b0a2..912ac19e44cbe9c7c31ceba6682ebe9a25e6dd4c 100644 (file)
@@ -4858,7 +4858,7 @@ static int cmd_port_param_show(struct dl *dl)
 
 static void cmd_port_function_help(void)
 {
-       pr_err("Usage: devlink port function set DEV/PORT_INDEX [ hw_addr ADDR ] [ state STATE ]\n");
+       pr_err("Usage: devlink port function set DEV/PORT_INDEX [ hw_addr ADDR ] [ state { active | inactive } ]\n");
        pr_err("                      [ roce { enable | disable } ] [ migratable { enable | disable } ]\n");
        pr_err("       devlink port function rate { help | show | add | del | set }\n");
 }