From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9DC30A0547; Wed, 29 Sep 2021 12:27:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 988CD410ED; Wed, 29 Sep 2021 12:27:39 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id BBBC840685 for ; Wed, 29 Sep 2021 12:27:37 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="211993869" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="211993869" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:37 -0700 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="476597429" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:36 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Wed, 29 Sep 2021 18:28:30 +0000 Message-Id: <20210929182832.146624-3-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210929182832.146624-1-yanx.xia@intel.com> References: <20210929182832.146624-1-yanx.xia@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 2/4] test_plans/generic_flow_api_test_plan: move case from generic_filter to generic_flow_api X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" move case from generic_filter to generic_flow_api Signed-off-by: Yan Xia --- test_plans/generic_flow_api_test_plan.rst | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst index 760f8e82..d3029430 100644 --- a/test_plans/generic_flow_api_test_plan.rst +++ b/test_plans/generic_flow_api_test_plan.rst @@ -2154,3 +2154,40 @@ Configure the traffic generator to send syn packets. Then Verify that the packet are not received on the queue 2:: testpmd> stop + +Test Case: 128 queues +======================== + +This case is designed for NIC(niantic). Since NIC(niantic) has 128 transmit +queues, it should be supports 128 kinds of filter if Hardware have enough +cores. +DPDK enable 64 queues in ixgbe driver by default. Enlarge queue number to 128 +for 128 queues test:: + + sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h + +Launch the app ``testpmd`` with the following arguments:: + + ./testpmd -l 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53 -n 4 -- -i --disable-rss --rxq=128 --txq=128 --portmask=0x3 --nb-cores=4 --total-num-mbufs=263168 + + testpmd>set stat_qmap rx 0 0 0 + testpmd>set stat_qmap rx 1 0 0 + testpmd>vlan set strip off 0 + testpmd>vlan set strip off 1 + testpmd>vlan set filter off 0 + testpmd>vlan set filter off 1 + +Create the 5-tuple Filters with different queues (64,127) on port 0 for +niantic:: + + testpmd> set stat_qmap rx 0 64 1 + testpmd> flow create 0 ingress pattern eth / ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is 1 src is 1 / end actions queue index 64 / end + testpmd> set stat_qmap rx 0 127 2 + testpmd> flow create 0 ingress pattern eth / ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is 2 src is 1 / end actions queue index 127 / end + +Send packets(`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 1 `src_port` = +1 `protocol` = tcp) and (`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 2 +`src_port` = 1 `protocol` = tcp ). Then reading the stats for port 0 after +sending packets. packets are received on the queue 64 and queue 127 When +setting 5-tuple Filter with queue(128), it will display failure because the +number of queues no more than 128. -- 2.32.0