From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 08C422BAF for ; Thu, 16 Aug 2018 12:46:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Aug 2018 03:46:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,246,1531810800"; d="scan'208";a="82229274" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 16 Aug 2018 03:46:17 -0700 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Thu, 16 Aug 2018 18:47:28 +0800 Message-Id: <1534416448-122588-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH] test_plans: queue region add verification after flush rule 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, 16 Aug 2018 10:46:19 -0000 Add some verification after flushing queue region rules. If the packet type doesn’t match any queue region rules, it will be distributed to the queue of queue region 0. Signed-off-by: Peng Yuan diff --git a/test_plans/queue_region_test_plan.rst b/test_plans/queue_region_test_plan.rst index 20ac496..1db7109 100644 --- a/test_plans/queue_region_test_plan.rst +++ b/test_plans/queue_region_test_plan.rst @@ -118,18 +118,27 @@ Test case 1: different pctype packet can enter the expected queue region pkt6 = Ether(dst="00:00:00:00:01:00", src="00:02:00:00:00:01")/IPv6(src="2001::1", dst="2001::2")/Raw('x' * 20) pkt7 = Ether(dst="00:00:00:00:01:00", src="00:02:00:00:00:01")/IPv6(src="2001::1", dst="2001::2")/UDP(sport=24,dport=25)/Raw('x'*20) pkt8 = Ether(dst="00:00:00:00:01:00", src="00:02:00:00:00:01")/Dot1Q(prio=1)/IP(src="192.168.0.1", dst="192.168.0.2")/Raw('x'*20) + pkt9 = Ether(dst="00:00:00:00:01:00", src="00:02:00:00:00:01")/IPv6(src="2001::1", dst="2001::2")/TCP(sport=24,dport=25)/Raw('x'*20) verify the pkt1 to queue 1, pkt2 to queue 3 or queue 4, pkt3 to queue 6 or queue 7, pkt4 to queue 8 or queue 9, pkt5 to queue 11 or 12 or 13 or 14, pkt6 to queue 15, pkt7 to queue 6 or queue 7, pkt8 enter the same queue with pkt5. + pkt9 to queue 1. + + Notes: If the packet type doesn’t match any queue region rules, + it will be distributed to the queue of queue region 0, + despite queue region 0 matches any rule. 4. verified the rules can be listed and flushed:: testpmd> show port 0 queue-region testpmd> set port 0 queue-region flush off + Send the pkt1-pkt9, the packets can't enter the same queue which defined in queue region rule. + They are distributed to queues according RSS rule. + Notes: fortville can't parse the TCP SYN type packet, fortpark can parse it. So if fortville, pkt2 to queue 6 or queue 7. @@ -138,8 +147,8 @@ Test case 2: different user priority packet can enter the expected queue region 1. Set queue region on a port:: - testpmd> set port 0 queue-region region_id 0 queue_start_index 0 queue_num 1 - testpmd> set port 0 queue-region region_id 7 queue_start_index 1 queue_num 8 + testpmd> set port 0 queue-region region_id 0 queue_start_index 14 queue_num 2 + testpmd> set port 0 queue-region region_id 7 queue_start_index 0 queue_num 8 testpmd> set port 0 queue-region region_id 2 queue_start_index 10 queue_num 4 2. Set the mapping of User Priority to Traffic Classes on a port:: @@ -159,18 +168,25 @@ Test case 2: different user priority packet can enter the expected queue region pkt5=Ether(dst="00:00:00:00:01:00", src="00:02:00:00:00:01")/Dot1Q(prio=7)/IP(src="192.168.0.3", dst="192.168.0.4")/UDP(sport=22, dport=23)/Raw('x'*20) pkt6=Ether(dst="00:00:00:00:01:00", src="00:02:00:00:00:01")/IP(src="192.168.0.3", dst="192.168.0.4")/UDP(sport=22, dport=23)/Raw('x'*20) - verify the pkt1 to queue 0, - pkt2 to queue 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8. + verify the pkt1 to queue 14 or 15, + pkt2 to queue 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7. pkt3 to queue 10 or 11 or 12 or 13. pkt4 enter the same queue with pkt3. pkt5 to queue 10 or 11 or 12 or 13. - pkt6 enter different queue from pkt5. + pkt6 to queue 14 or 15. + + Notes: If the packet UP doesn’t match any queue region rules, + it will be distributed to the queue of queue region 0, + despite queue region 0 matches any rule. 4. verified the rules can be listed and flushed:: testpmd> show port 0 queue-region testpmd> set port 0 queue-region flush off + Send the pkt1-pkt6, the packets can't enter the same queue which defined in queue region rule. + They are distributed to queues according RSS rule. + Test case 3: boundary value testing =================================== -- 2.7.4