[PATCH] app/testpmd: fix help string of BPF load command
Konstantin Ananyev
konstantin.ananyev at huawei.com
Mon Jun 24 17:45:47 CEST 2024
> Based on the logic of 'bpf_parse_flags()' and the 'bpf-load' section of
> 'testpmd_funcs.rst' document, the 'B' flag in the help string of
> bpf-load command should be '-'.
>
> Fixes: e977e4199a8d ("app/testpmd: add commands to load/unload BPF filters")
> Cc: konstantin.ananyev at intel.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Long Wu <long.wu at corigine.com>
> Reviewed-by: Peng Zhang <peng.zhang at corigine.com>
> ---
> app/test-pmd/bpf_cmd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/app/test-pmd/bpf_cmd.c b/app/test-pmd/bpf_cmd.c
> index 46f6b7d6d2..24d34f983e 100644
> --- a/app/test-pmd/bpf_cmd.c
> +++ b/app/test-pmd/bpf_cmd.c
> @@ -139,7 +139,7 @@ static cmdline_parse_token_string_t cmd_load_bpf_prm =
> cmdline_parse_inst_t cmd_operate_bpf_ld_parse = {
> .f = cmd_operate_bpf_ld_parsed,
> .data = NULL,
> - .help_str = "bpf-load rx|tx <port> <queue> <J|M|B> <file_name>",
> + .help_str = "bpf-load rx|tx <port> <queue> <J|M|-> <file_name>",
> .tokens = {
> (void *)&cmd_load_bpf_start,
> (void *)&cmd_load_bpf_dir,
> --
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> 2.39.1
>
More information about the dev
mailing list