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 E8847A00BE; Fri, 1 Nov 2019 08:05:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D47BD1DFE1; Fri, 1 Nov 2019 08:05:11 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 80FDA1D41E for ; Fri, 1 Nov 2019 08:05:08 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Nov 2019 00:05:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,254,1569308400"; d="scan'208";a="190887573" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.222]) by orsmga007.jf.intel.com with ESMTP; 01 Nov 2019 00:05:06 -0700 From: yufengmx To: dts@dpdk.org, yinan.wang@intel.com Cc: yufengmx Date: Fri, 1 Nov 2019 15:06:45 +0800 Message-Id: <20191101070647.59192-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191101070647.59192-1-yufengx.mo@intel.com> References: <20191101070647.59192-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V3 1/3] ethtool_stats: update test plan 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" use testpmd xstat data as reference data to check proc info tool xstat data. update test plan content. Signed-off-by: yufengmx --- test_plans/ethtool_stats_test_plan.rst | 66 ++++++++++++++++++-------- 1 file changed, 45 insertions(+), 21 deletions(-) diff --git a/test_plans/ethtool_stats_test_plan.rst b/test_plans/ethtool_stats_test_plan.rst index 13b5909..95f9e7a 100644 --- a/test_plans/ethtool_stats_test_plan.rst +++ b/test_plans/ethtool_stats_test_plan.rst @@ -47,13 +47,20 @@ that DPDK supports. The idea behind this epic is two fold as following. - the retrieval of aggregate stats upon request (Top level stats). - the retrieval of the extended NIC stats. - grouping of stats logically so they can be retrieved per logical grouping. - - the option to enable/disable the stats groups to retrieve similar to set private flags in ethtool. + - the option to enable/disable the stats groups to retrieve similar to set + private flags in ethtool. Prerequisites ============= 2xNICs (2 full duplex optical ports per NIC). One on dut, another one on tester, -link them together. Update two nics' firmware to latest version. +link them together. Update two nics' firmware to latest version:: + + Tester DUT + .-------. .-------. + | port0 | <------------------> | port0 | + | port1 | <------------------> | port1 | + '-------' '-------' Test cases ========== @@ -64,8 +71,8 @@ bind two ports:: ./usertools/dpdk-devbind.py --bind=igb_uio -Test Case: xstat command set intergrity ---------------------------------------- +Test Case: xstat options +------------------------ check ``dpdk-procinfo`` tool support ``xstats`` command options. @@ -80,7 +87,11 @@ steps: #. boot up ``testpmd``:: - .//app/testpmd -c 0x600006 -n 4 -- -i --port-topology=loop + .//app/testpmd -c 0x3 -n 4 -- -i --port-topology=loop + + testpmd> set fwd io + testpmd> clear port xstats all + testpmd> start #. run ``dpdk-procinfo`` tool:: @@ -88,25 +99,30 @@ steps: #. check ``dpdk-procinfo`` tool output should contain upper options. -Test Case: xstat command ------------------------- +Test Case: xstat statistic integrity +------------------------------------ -check if port extended statistics can get right data. +check if port extended statistics can access by xstat name or xstat id. steps: #. boot up ``testpmd``:: - .//app/testpmd -c 0x600006 -n 4 -- -i --port-topology=loop + .//app/testpmd -c 0x3 -n 4 -- -i --port-topology=loop + + testpmd> set fwd io + testpmd> clear port xstats all + testpmd> start #. send udp packet of 64/72/128/256/512/1024 size to port 0/1:: sendp([Ether()/IP()/UDP()/Raw('\0'*60)], iface=) -#. run ``dpdk-procinfo`` tool with ``xstats`` option and check if all port have - a correct data of different size packet:: +#. run ``dpdk-procinfo`` tool with ``xstats`` option and check if all ports + extended statistics can access by xstat name or xstat id:: - .//app/dpdk-procinfo -- -p 3 --xstats + .//app/dpdk-procinfo -- -p 3 --xstats-id + .//app/dpdk-procinfo -- -p 3 --xstats-name Test Case: xstat-reset command ------------------------------ @@ -117,7 +133,11 @@ steps: #. boot up ``testpmd``:: - .//app/testpmd -c 0x600006 -n 4 -- -i --port-topology=loop + .//app/testpmd -c 0x3 -n 4 -- -i --port-topology=loop + + testpmd> set fwd io + testpmd> clear port xstats all + testpmd> start #. send udp packet of 64/72/128/256/512/1024 size to port 0/1:: @@ -132,24 +152,26 @@ Test Case: xstat single statistic --------------------------------- check if port extended statistic name can be get by statistic id and check -related data's correctness. +related data's correctness with testpmd xstat data. steps: #. boot up ``testpmd``:: - .//app/testpmd -c 0x600006 -n 4 -- -i --port-topology=loop - -#. run ``dpdk-procinfo`` tool with ``xstats`` option to get all NIC extended - statistics parameters of port and use the output display sequence as parameter - index in the following search index:: + .//app/testpmd -c 0x3 -n 4 -- -i --port-topology=loop - .//app/dpdk-procinfo -- -p 3 --xstats + testpmd> set fwd io + testpmd> clear port xstats all + testpmd> start #. send udp packet of 64/72/128/256/512/1024 size to port 0/1:: sendp([Ether()/IP()/UDP()/Raw('\0'*60)], iface=) +#. run test pmd ``show port xstats all`` to get testpmd port xstat data: + + testpmd> show port xstats all + #. run ``dpdk-procinfo`` tool with ``xstats-id`` option to get the statistic name corresponding with the index id:: @@ -158,4 +180,6 @@ steps: #. run ``dpdk-procinfo`` tool with ``xstats-name`` option to get the statistic data corresponding with the statistic name:: - .//app/dpdk-procinfo -- -p 3 --xstats-name \ No newline at end of file + .//app/dpdk-procinfo -- -p 3 --xstats-name + +#. compare these proc info tool xstat values with testpmd xstat values. \ No newline at end of file -- 2.21.0