Revert "devlink: Add usage help for eswitch subcommand"
This reverts commit 11f4cd31d2.
This commit is contained in:
parent
d646916993
commit
b95e5c55a9
|
|
@ -963,8 +963,6 @@ static bool dl_dump_filter(struct dl *dl, struct nlattr **tb)
|
||||||
static void cmd_dev_help(void)
|
static void cmd_dev_help(void)
|
||||||
{
|
{
|
||||||
pr_err("Usage: devlink dev show [ DEV ]\n");
|
pr_err("Usage: devlink dev show [ DEV ]\n");
|
||||||
pr_err(" devlink dev eswitch set DEV [ mode { legacy | switchdev } ]\n");
|
|
||||||
pr_err(" devlink dev eswitch show DEV\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool cmp_arr_last_handle(struct dl *dl, const char *bus_name,
|
static bool cmp_arr_last_handle(struct dl *dl, const char *bus_name,
|
||||||
|
|
@ -1261,10 +1259,7 @@ static int cmd_dev_eswitch_set(struct dl *dl)
|
||||||
|
|
||||||
static int cmd_dev_eswitch(struct dl *dl)
|
static int cmd_dev_eswitch(struct dl *dl)
|
||||||
{
|
{
|
||||||
if (dl_argv_match(dl, "help") || dl_no_arg(dl)) {
|
if (dl_argv_match(dl, "set")) {
|
||||||
cmd_dev_help();
|
|
||||||
return 0;
|
|
||||||
} else if (dl_argv_match(dl, "set")) {
|
|
||||||
dl_arg_inc(dl);
|
dl_arg_inc(dl);
|
||||||
return cmd_dev_eswitch_set(dl);
|
return cmd_dev_eswitch_set(dl);
|
||||||
} else if (dl_argv_match(dl, "show")) {
|
} else if (dl_argv_match(dl, "show")) {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ BUS_NAME/BUS_ADDRESS
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.BR mode " { " legacy " | " switchdev " } "
|
.BR mode " { " legacy " | " switchdev " } "
|
||||||
Set eswitch mode
|
set eswitch mode
|
||||||
|
|
||||||
.I legacy
|
.I legacy
|
||||||
- Legacy SRIOV
|
- Legacy SRIOV
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue