From patchwork Fri Sep 25 14:52:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Yinan" X-Patchwork-Id: 78788 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 737B5A04C3; Fri, 25 Sep 2020 08:04:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2B4BD1E4CA; Fri, 25 Sep 2020 08:04:40 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id F07B31E4C8 for ; Fri, 25 Sep 2020 08:04:37 +0200 (CEST) IronPort-SDR: dGjzDfXy6a4zitaqpEwG2eRXLk/3ulv1iwmh1NLAzLUSdAin8Nt71mFqTKMvViV+4Dhpoipcdm mo1R1bTPR0tg== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140864858" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140864858" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 23:04:21 -0700 IronPort-SDR: 9OPPuKArQ4utuVz0KMpSK2kh+41NQuRMhsAHTZ7bdfYQOdWkxkrVi20tWn+uZxhhyzyK8C8T+I Uuf7AKAlTGTw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="455692452" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by orsmga004.jf.intel.com with ESMTP; 24 Sep 2020 23:04:20 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Fri, 25 Sep 2020 10:52:51 -0400 Message-Id: <20200925145251.2230816-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dts] [PATCH v1] test_plans/pvp_share_lib_test_plan.rst X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Update test steps to adapting meson build. Signed-off-by: Yinan Wang --- test_plans/pvp_share_lib_test_plan.rst | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test_plans/pvp_share_lib_test_plan.rst b/test_plans/pvp_share_lib_test_plan.rst index dfc87dc..dd2131b 100644 --- a/test_plans/pvp_share_lib_test_plan.rst +++ b/test_plans/pvp_share_lib_test_plan.rst @@ -42,19 +42,17 @@ The feature need compile dpdk as shared libraries, then application should use o Test Case1: Vhost/virtio-user pvp share lib test with niantic ============================================================= -1. Enable the shared lib in DPDK configure file:: +1. Enable the shared lib compile option:: - vi ./config/common_base - -CONFIG_RTE_BUILD_SHARED_LIB=n - +CONFIG_RTE_BUILD_SHARED_LIB=y + CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dc_args='-DRTE_BUILD_SHARED_LIB=1' --default-library=shared x86_64-native-linuxapp-gcc -2. Recompile dpdk code:: +2. Compile dpdk code:: make install T=x86_64-native-linux-gcc -j 30 3. Export shared lib files into host environment:: - export LD_LIBRARY_PATH=/root/dpdk/x86_64-native-linuxapp-gcc/lib:$LD_LIBRARY_PATH + export LD_LIBRARY_PATH=/root/dpdk/x86_64-native-linuxapp-gcc/drivers:$LD_LIBRARY_PATH 4. Bind niantic port with igb_uio, use option ``-d`` to load the dynamic pmd when launch vhost:: @@ -81,4 +79,4 @@ Similar as Test Case1, all steps are similar except step 4: ./testpmd -c 0x03 -n 4 -d librte_pmd_vhost.so.2.1 -d librte_pmd_i40e.so.1.1 -d librte_mempool_ring.so.1.1 \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i - testpmd>start + testpmd>start