From patchwork Tue Jun 21 12:13:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herakliusz Lipiec X-Patchwork-Id: 113171 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AA139A00C5; Tue, 21 Jun 2022 14:08:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AAB24069C; Tue, 21 Jun 2022 14:08:47 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 4342740151 for ; Tue, 21 Jun 2022 14:08:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655813326; x=1687349326; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Mv8EIfMfHNw3qwJDcQbxUTLKR4SjTA4fjPPsT4qpp08=; b=Y2/R1dELGi/F0sVq4p8GrMn9aPXpNDHVaBIyLTB7I8RvjOaC+8cie728 EIrUiUDGg0yOsDMNMt/T9QQ3wlN/suGF1upHoK7kw6VGNxEw3qclo3OCZ bRLHStjoTjtJtB1C8xwAT64Y7PjMxuPhpAuLM8Rb5Nq+oGFeKNFarK0ah ZdMUMlTv0cYO5gJfyrYUwqBu2FL3Z2dSpFp43i7oi8I1ZHnkxpmVygcA3 JQWkj5rs77bveBg265OZc9Jp77xqI0ORRP+a2ELSmd0fwEvuZdVP+bQ7n B2PjGKZM8qzXAsjsVE0jwM6Xt1qCmAAAnIHekTpCHzL4m3UeiNFTa4aE7 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10384"; a="344094143" X-IronPort-AV: E=Sophos;i="5.92,209,1650956400"; d="scan'208";a="344094143" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2022 05:08:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,209,1650956400"; d="scan'208";a="585259488" Received: from silpixa00399499.ir.intel.com (HELO silpixa00399499.ger.corp.intel.com) ([10.237.223.138]) by orsmga007.jf.intel.com with ESMTP; 21 Jun 2022 05:08:44 -0700 From: Herakliusz Lipiec To: maxime.coquelin@redhat.com, chenbo.xia@intel.com, bruce.richardson@intel.com Cc: dev@dpdk.org, Herakliusz Lipiec Subject: [PATCH v2 1/3] examples/vhost: update makefile to match meson build system Date: Tue, 21 Jun 2022 13:13:13 +0100 Message-Id: <20220621121315.1173180-1-herakliusz.lipiec@intel.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607114856.1085803-1-herakliusz.lipiec@intel.com> References: <20220607114856.1085803-1-herakliusz.lipiec@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Meson build system creates a vhost binary but Makefile and docs reference same as vhost-switch. Updating makefile to match meson and the docs accordingly. Signed-off-by: Herakliusz Lipiec Acked-by: Bruce Richardson --- V2: * Moving relevant doc updates here from second patch as per Bruces suggestion. --- doc/guides/sample_app_ug/vhost.rst | 10 +++++----- examples/vhost/Makefile | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst index a6ce4bc8ac..3c3cfdcd2d 100644 --- a/doc/guides/sample_app_ug/vhost.rst +++ b/doc/guides/sample_app_ug/vhost.rst @@ -17,10 +17,10 @@ Testing steps ------------- This section shows the steps how to test a typical PVP case with this -vhost-switch sample, whereas packets are received from the physical NIC +dpdk-vhost sample, whereas packets are received from the physical NIC port first and enqueued to the VM's Rx queue. Through the guest testpmd's default forwarding mode (io forward), those packets will be put into -the Tx queue. The vhost-switch example, in turn, gets the packets and +the Tx queue. The dpdk-vhost example, in turn, gets the packets and puts back to the same physical NIC port. Build @@ -38,7 +38,7 @@ Start the vswitch example .. code-block:: console - ./dpdk-vhost-switch -l 0-3 -n 4 --socket-mem 1024 \ + ./dpdk-vhost -l 0-3 -n 4 --socket-mem 1024 \ -- --socket-file /tmp/sock0 --client \ ... @@ -90,10 +90,10 @@ Then start testpmd for packet forwarding testing. Inject packets -------------- -While a virtio-net is connected to vhost-switch, a VLAN tag starts with +While a virtio-net is connected to dpdk-vhost, a VLAN tag starts with 1000 is assigned to it. So make sure configure your packet generator with the right MAC and VLAN tag, you should be able to see following -log from the vhost-switch console. It means you get it work:: +log from the dpdk-vhost console. It means you get it work:: VHOST_DATA: (0) mac 52:54:00:00:00:14 and vlan 1000 registered diff --git a/examples/vhost/Makefile b/examples/vhost/Makefile index 975a5dfe40..ea64f02bb0 100644 --- a/examples/vhost/Makefile +++ b/examples/vhost/Makefile @@ -2,7 +2,7 @@ # Copyright(c) 2010-2014 Intel Corporation # binary name -APP = vhost-switch +APP = dpdk-vhost # all source are stored in SRCS-y SRCS-y := main.c virtio_net.c