Readd other long options case in l2fwd_parse_args function to ensure all long options will work well.
Fixes: fa19eb20d2126d8bc63acc8f336a353dfaf8c354 ("examples/l2fwd: add forwarding port mapping option") Cc: sta...@dpdk.org Signed-off-by: SunChengLian <sunchengl...@loongson.cn> --- examples/l2fwd/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index ffb67bb901..3215ec3806 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -502,6 +502,9 @@ l2fwd_parse_args(int argc, char **argv) } break; + case 0: + break; + default: l2fwd_usage(prgname); return -1; -- 2.25.1