From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3D25CA04B5; Thu, 29 Oct 2020 09:36:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3585BBE49; Thu, 29 Oct 2020 09:36:28 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 4C17ABE41 for ; Thu, 29 Oct 2020 09:36:26 +0100 (CET) IronPort-SDR: zL/uXzFGwKPLYhQonHJ+AriAPTzO0xOUg7PEN0Z7oWVqjIOKOYPoKY7GBv5wf0tkRNW+Pvo7he I3dUm5xhPmvg== X-IronPort-AV: E=McAfee;i="6000,8403,9788"; a="148254762" X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="148254762" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 01:36:24 -0700 IronPort-SDR: GPQFZ90DGXyApIN11uWtVNPIDJqev1Q+Xylf0pDHAFYsv5h1XutkicXR1jLoDEz6qE28rkWois qQxlLSTMhVCQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="361413812" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by FMSMGA003.fm.intel.com with ESMTP; 29 Oct 2020 01:36:23 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Thu, 29 Oct 2020 13:25:55 -0400 Message-Id: <20201029172555.2217-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH v2] 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 share lib name for netdev. Signed-off-by: Yinan Wang --- test_plans/pvp_share_lib_test_plan.rst | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test_plans/pvp_share_lib_test_plan.rst b/test_plans/pvp_share_lib_test_plan.rst index dfc87dc..f41b467 100644 --- a/test_plans/pvp_share_lib_test_plan.rst +++ b/test_plans/pvp_share_lib_test_plan.rst @@ -44,27 +44,25 @@ Test Case1: Vhost/virtio-user pvp share lib test with niantic 1. Enable the shared lib in DPDK configure file:: - 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:: - make install T=x86_64-native-linux-gcc -j 30 + ninja -C x86_64-native-linuxapp-gcc -j 55 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:: - ./testpmd -c 0x03 -n 4 -d librte_pmd_vhost.so.2.1 -d librte_pmd_ixgbe.so.2.1 -d librte_mempool_ring.so.1.1 \ + ./testpmd -c 0x03 -n 4 -d librte_net_vhost.so.21.0 -d librte_net_i40e.so.21.0 -d librte_mempool_ring.so.21.0 \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i testpmd>start 5. Launch virtio-user:: - ./testpmd -c 0x0c -n 4 -d librte_pmd_virtio.so.1.1 -d librte_mempool_ring.so.1.1 \ + ./testpmd -c 0x0c -n 4 -d librte_net_virtio.so.21.0 -d librte_mempool_ring.so.21.0 \ --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- -i testpmd>start @@ -79,6 +77,6 @@ Similar as Test Case1, all steps are similar except step 4: 4. Bind fortville port with igb_uio, use option ``-d`` to load the dynamic pmd when launch vhost:: - ./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 \ + ./testpmd -c 0x03 -n 4 -d librte_net_vhost.so -d librte_net_i40e.so -d librte_mempool_ring.so \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i - testpmd>start \ No newline at end of file + testpmd>start -- 2.25.1