examples/l2fwd: add promiscuous mode option
authorSarosh Arif <sarosh.arif@emumba.com>
Wed, 13 Oct 2021 07:23:03 +0000 (12:23 +0500)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Oct 2021 20:31:53 +0000 (22:31 +0200)
commitb54403fd08374dae243bf0a0e90488f51485154e
treecdacad17b8cb06555ee952e80cc7c1a72acddceb
parent741bb850ee2adb55d03ac1d70433894006784253
examples/l2fwd: add promiscuous mode option

The default behaviour of l2fwd is to exit if we are unable to turn
promiscuous mode on. On some aws instances turning promiscuous mode
on is not permitted. In such cases there should be a way to run the
application without promiscuous mode.

This patch allows user to turn promiscuous mode on via command line
parameter. l3fwd has a similar option available.

Signed-off-by: Sarosh Arif <sarosh.arif@emumba.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
doc/guides/sample_app_ug/l2_forward_real_virtual.rst
examples/l2fwd/main.c