examples/l2fwd: add option --[no-]mac-updating
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 23 Sep 2016 13:50:53 +0000 (15:50 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 12:37:48 +0000 (14:37 +0200)
commitcf435a07c0b313c1617567bee947326af8dc8e2c
treed8723b7acf3441f92e7a59ca5650cce3a88af67c
parentedabd7fef5448af6a9f81892fdb4a365fad9e320
examples/l2fwd: add option --[no-]mac-updating

l2fwd could be useful for testing virtual devices without the need
of physical ones.

To achieve this, this patch adds a new option to enable/disable the
MAC addresses updating done at forwarding time: --[no-]mac-updating

It enables the use of l2fwd for basic VM to VM communication.

By default, MAC address updating remains enabled, to keep consistency
with previous usage.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
doc/guides/sample_app_ug/img/l2_fwd_vm2vm.svg [new file with mode: 0644]
doc/guides/sample_app_ug/l2_forward_real_virtual.rst
examples/l2fwd/main.c