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 1BDD45582 for ; Tue, 26 Jul 2016 17:56:36 +0200 (CEST) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 7F94264D08; Tue, 26 Jul 2016 15:56:35 +0000 (UTC) Received: from max-t460s.redhat.com (vpn1-4-196.ams2.redhat.com [10.36.4.196]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6QFuXmS010208; Tue, 26 Jul 2016 11:56:34 -0400 From: Maxime Coquelin To: bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, Maxime Coquelin Date: Tue, 26 Jul 2016 17:56:25 +0200 Message-Id: <1469548587-3202-1-git-send-email-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 26 Jul 2016 15:56:35 +0000 (UTC) Subject: [dpdk-dev] [PATCH 0/2] examples/l2fwd: Add option to enable/disable MAC addresses tweaking 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: Tue, 26 Jul 2016 15:56:36 -0000 This series adds a new option to enable/disable MAC addresses tweaking 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-tweaking By default, MAC addresses tweaking remains enabled, but maybe we could consider having it disabled by default to be consistent with l2fwd-cat for example. Maxime Coquelin (2): examples/l2fwd: Add new option to enable/disable MAC addresses tweaking doc: l2fwd: document new --[no-]mac-tweaking option doc/guides/sample_app_ug/img/l2_fwd_vm2vm.svg | 311 +++++++++++++++++++++ .../sample_app_ug/l2_forward_real_virtual.rst | 24 +- examples/l2fwd/main.c | 39 ++- 3 files changed, 358 insertions(+), 16 deletions(-) create mode 100644 doc/guides/sample_app_ug/img/l2_fwd_vm2vm.svg -- 2.7.4