From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 194041B91D for ; Thu, 20 Dec 2018 03:58:49 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2018 18:58:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,375,1539673200"; d="scan'208";a="131449670" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 19 Dec 2018 18:58:48 -0800 From: "Wu,ChangqingX" To: dts@dpdk.org Cc: "Wu,ChangqingX" Date: Thu, 20 Dec 2018 11:02:02 +0800 Message-Id: <1545274922-35545-1-git-send-email-changqingx.wu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] test_plans/add_new_feature_externel_memory 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: , X-List-Received-Date: Thu, 20 Dec 2018 02:58:50 -0000 add_new_feature_externel_memory Signed-off-by: Wu,ChangqingX --- test_plans/external_memory_test_plan.rst | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 test_plans/external_memory_test_plan.rst diff --git a/test_plans/external_memory_test_plan.rst b/test_plans/external_memory_test_plan.rst new file mode 100644 index 0000000..23fec9b --- /dev/null +++ b/test_plans/external_memory_test_plan.rst @@ -0,0 +1,43 @@ +Ability to use external memory test plan +========================================= + +Description: +------------ +Provide an abstraction for DPDK hugepage allocation, to have a "default" memory +allocator that will allocate hugepages, but also have custom allocator support for +external memory. + +Test cases: +----------- + +Test case 1: IGB_UIO and anonymous memory allocation +steps: +1. bind the ports to IGB_UIO driver; +2. start testpmd with --mp-alloc=xmem flag: +# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmem -i +3. start forward in testpmd; +4. start send traffic from outside to test the forward function; + +Test case 2: IGB_UIO and anonymous hugepage memory allocation +steps: +1. bind the ports to IGB_UIO driver; +2. start testpmd with --mp-alloc=xmemhuge flag: +# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmemhuge -i +3. start forward in testpmd; +4. start send traffic from outside to test the forward function; + +Test case 3: VFIO and anonymous memory allocation +steps: +1. bind the ports to vfio-pci driver; +2. start testpmd with --mp-alloc=xmem flag: +# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmem -i +3. start forward in testpmd; +4. start send traffic from outside to test the forward function; + +Test case 4: VFIO and anonymous hugepage memory allocation +steps: +1. bind the ports to vfio-pci driver; +2. start testpmd with --mp-alloc=xmemhuge flag: +# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmemhuge -i +3. start forward in testpmd; +4. start send traffic from outside to test the forward function; -- 2.17.2