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.anan...@intel.com Cc: sta...@dpdk.org Signed-off-by: Chaoyong He <chaoyong...@corigine.com> Reviewed-by: Long Wu <long...@corigine.com> Reviewed-by: Peng Zhang <peng.zh...@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, -- 2.39.1