From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 55D1968F2 for ; Fri, 23 Sep 2016 15:50:57 +0200 (CEST) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BEADD7F740; Fri, 23 Sep 2016 13:50:56 +0000 (UTC) Received: from max-t460s.redhat.com (vpn1-7-3.ams2.redhat.com [10.36.7.3]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u8NDosCu030133; Fri, 23 Sep 2016 09:50:55 -0400 From: Maxime Coquelin To: bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com, john.mcnamara@intel.com, dev@dpdk.org Cc: maxime.coquelin@redhat.com Date: Fri, 23 Sep 2016 15:50:52 +0200 Message-Id: <1474638654-26919-1-git-send-email-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 23 Sep 2016 13:50:56 +0000 (UTC) Subject: [dpdk-dev] [PATCH v2 0/2] examples/l2fwd: Add option to enable/disable MAC addresses updating X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2016 13:50:57 -0000 This series adds a new option to enable/disable MAC addresses updating in l2fwd example. Doing that, we can enable basic VM 2 VM communication easily, without external projects dependencies, nor real NIC (as with vhost example). Example of cli with vhost-user: #l2fwd -c f --socket-mem=1024 \ --vdev 'eth_vhost0,iface=/tmp/vhost-user1,queues=1' \ --vdev 'eth_vhost1,iface=/tmp/vhost-user2,queues=1' \ -- -p3 --no-mac-updating By default, MAC addresses updating remains enabled, but maybe we could consider having it disabled by default to be consistent with l2fwd-cat for example. Changes since v1: ----------------- - Rebased on top of master branch - s/tweaking/updating/g (John) - Re-organize text around images - Apply John's Ack Maxime Coquelin (2): examples/l2fwd: Add new option to enable/disable MAC addresses updating doc: l2fwd: document new --[no-]mac-updating option doc/guides/sample_app_ug/img/l2_fwd_vm2vm.svg | 311 +++++++++++++++++++++ .../sample_app_ug/l2_forward_real_virtual.rst | 31 +- examples/l2fwd/main.c | 39 ++- 3 files changed, 361 insertions(+), 20 deletions(-) create mode 100644 doc/guides/sample_app_ug/img/l2_fwd_vm2vm.svg -- 2.7.4