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 79AB342995; Thu, 20 Apr 2023 11:14:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49B6C40A4B; Thu, 20 Apr 2023 11:14:46 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 7EFA840687 for ; Thu, 20 Apr 2023 11:14:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681982084; x=1713518084; h=from:to:cc:subject:date:message-id; bh=01du4dCCkcxaWQz8z9eGjKoNpM6T2cw1aDHPXxmQnHY=; b=fCJTnIqWShObQymJYZx1r8I68MQ94qxQH1j4RJ1ms8dftwgTJrJTYvjv oKF02vmUsa0rCZyqWMCiuQFDgdj3GPwLwXvl3YPky0UrWZCiv0Lt2e1ea 0I5hmvIHcC6Z+OUKPXRQpir6a4k6IVnwT0PRIqyF/VKCWwEMAwINc6R7/ xuIARYluHKpmE2fytikeo68jWBpTjwIn3IyafVP2Szt/BH+PP9fsLGhml ky3lAAlJIOnI9KO+bJZlbML/RkRUQMsalh5/nbnMojjf6qKk+OGe9phUA GOJHcRrX6spz0fP8EPwpyocoDuk7FPdD4CmO9W9V8g/T/EX8J3AC0GKV/ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="373576340" X-IronPort-AV: E=Sophos;i="5.99,212,1677571200"; d="scan'208";a="373576340" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 02:14:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="1021522918" X-IronPort-AV: E=Sophos;i="5.99,212,1677571200"; d="scan'208";a="1021522918" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 02:14:40 -0700 From: Lingli Chen To: dts@dpdk.org Cc: yuan.peng@intel.com, Lingli Chen Subject: [dts][PATCH V1 1/2] test_plans/generic_flow_api: add ixgbe new cases Date: Thu, 20 Apr 2023 04:03:48 -0400 Message-Id: <20230420080349.12703-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 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 add ixgbe fdir for ipv6/ipv4 mask case Signed-off-by: Yuan Peng Signed-off-by: Lingli Chen --- test_plans/generic_flow_api_test_plan.rst | 92 +++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst index 28eb4902..2719a4d5 100644 --- a/test_plans/generic_flow_api_test_plan.rst +++ b/test_plans/generic_flow_api_test_plan.rst @@ -2520,3 +2520,95 @@ Send packets(`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 1 `src_port` = sending packets. packets are received on the queue 32 and queue 63 When setting 5-tuple Filter with queue(64), it will display failure because the number of queues no more than 64. + +Test case: IXGBE fdir for ipv6 mask +=================================== + +#. Launch the app ``testpmd`` with the following arguments:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 1ffff -n 4 -- -i --rxq=16 --txq=16 --nb-cores=16 --disable-rss + testpmd> set fwd rxonly + testpmd> set verbose 1 + testpmd> start + +Subcase1: fdir for ipv6 dst mask +-------------------------------- +1. create a dst mask rule on port 0:: + + flow create 0 ingress pattern fuzzy thresh spec 1 thresh mask 1 / ipv6 dst spec 2001::64 dst mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff / end actions queue index 2 / end + +2. send matched packet:: + + p1=Ether(dst="00:11:22:33:44:55")/IPv6(src="2001::3", dst="2001::64")/Raw('x' * 20) + +Check the packets are directed to queue 2. + +3. send unmatched packet:: + + p2=Ether(dst="00:11:22:33:44:55")/IPv6(src="2001::3", dst="2001::63")/Raw('x' * 20) + +Check the packet is directed to queue 0. + +Subcase2: fdir for ipv6 src mask +-------------------------------- +1. create a src mask rule on port 0:: + + flow create 0 ingress pattern fuzzy thresh spec 1 thresh mask 1 / ipv6 src spec 2001::63 src mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff / end actions queue index 1 / end + +2. send matched packet:: + + p3=Ether(dst="00:11:22:33:44:55")/IPv6(src="2001::63", dst="2001::64")/Raw('x' * 20) + +Check the packets are directed to queue 1. + +3. send unmatched packet:: + + p4=Ether(dst="00:11:22:33:44:55")/IPv6(src="2001::3", dst="2001::64")/Raw('x' * 20) + +Check the packet is directed to queue 0 + +Test case: IXGBE fdir for ipv4 mask +=================================== + +#. Launch the app ``testpmd`` with the following arguments:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 1ffff -n 4 -- -i --rxq=16 --txq=16 --nb-cores=16 --disable-rss + testpmd> set fwd rxonly + testpmd> set verbose 1 + testpmd> start + +Subcase1: fdir for ipv4 dst mask +-------------------------------- +1. create a dst mask rule on port 0:: + + flow create 0 ingress pattern fuzzy thresh spec 1 thresh mask 1 / eth / ipv4 dst spec 100.0.0.5 dst mask 255.255.255.255 / end actions queue index 3 / end + +2. send matched packet:: + + p1=Ether(dst="00:11:22:33:44:55")/IP(dst="100.0.0.5", src="192.168.0.1")/Raw('x' * 20) + +Check the packets are directed to queue 3. + +3. send unmatched packet:: + + p2=Ether(dst="00:11:22:33:44:55")/IP(dst="100.0.0.6", src="192.168.0.1")/Raw('x' * 20) + +Check the packet is directed to queue 0. + +Subcase2: fdir for ipv4 src mask +-------------------------------- +1. create a src mask rule on port 0:: + + flow create 0 ingress pattern fuzzy thresh spec 1 thresh mask 1 / eth / ipv4 src spec 100.0.0.5 src mask 255.255.255.255 / end actions queue index 3 / end + +2. send matched packet:: + + p3=Ether(dst="00:11:22:33:44:55")/IP(src="100.0.0.5", dst="192.168.0.1")/Raw('x' * 20) + +Check the packets are directed to queue 3. + +3. send unmatched packet:: + + p4=Ether(dst="00:11:22:33:44:55")/IP(src="100.0.0.6", dst="192.168.0.1")/Raw('x' * 20) + +Check the packet is directed to queue 0. \ No newline at end of file -- 2.17.1