examples/l2fwd: fix [no-]mac-updating options
authorChenglian Sun <sunchenglian@loongson.cn>
Tue, 22 Jun 2021 02:47:05 +0000 (10:47 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 5 Jul 2021 13:11:12 +0000 (15:11 +0200)
commitbbbe38a6d59ccdda25917712701e629d0b10af6f
tree0ac9fcd49503c3ba8d54b2750f6b23c62b23ee2c
parent74fb854a3de6899f1846c2e929462d830cf04d83
examples/l2fwd: fix [no-]mac-updating options

For l2fwd, --no-mac-updating and --mac-updating are treated as invalid
arguments. Rework long options parsing to let --no-mac-updating and
--mac-updating options work well.

Fixes: fa19eb20d212 ("examples/l2fwd: add forwarding port mapping option")
Cc: stable@dpdk.org
Signed-off-by: Chenglian Sun <sunchenglian@loongson.cn>
Reviewed-by: David Marchand <david.marchand@redhat.com>
examples/l2fwd/main.c