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 6FFB641C45; Thu, 9 Feb 2023 03:27:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 677CB40DDA; Thu, 9 Feb 2023 03:27:16 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 320C64067B for ; Thu, 9 Feb 2023 03:27:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675909634; x=1707445634; h=from:to:cc:subject:date:message-id; bh=hnzvMJO4RiKq+nH90ThKZyk8zs6uBTL3BWsP5dPqjs8=; b=Ugpr2KSx8n3rXDYfmvCJ4m8X8HAomqlCvKPhX+cTzja1CGZjSEEqBf3e Ah6cfglq7PVdKqgoQn6266hIl0CzF6rEBV3TT90109u+zJQNjhhKl9J/q Z167vi6IhBWftTYzpiXpskkJ6lb6s30DpRUGnpv3q59AXUcpe7aYatDzs 6xNxMZ/KD4Is6xrdtK5SVlpJdvb6u3Y5WU5Ct+VVC4D1joM2KWaEz60vo sxxaolNSc7J4aSzjgxrt7D4DONpjyI5U8mcAPIBBATOJomMNNcHHJ7FcZ m76+bvCYe03rC710lBLlD/p+D27cPmSrUZeW4FPFTegkwnZTrX6YWH6tJ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="313625698" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="313625698" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 18:27:10 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="660849483" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="660849483" Received: from unknown (HELO cvl_100g_103.icx.intel.com) ([10.239.252.93]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 18:27:02 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li Subject: [dts][PATCH V2 1/2] test_plans/large_vf: modify script to adapt to changes in dpdk Date: Thu, 9 Feb 2023 18:46:32 +0800 Message-Id: <20230209104633.2270-1-hongbox.li@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 1.after dpdk is modified, if all ports fail to start, dpdk still allows testpmd to enter the command line, instead of unconditionally terminating testpmd. According to dpdk commit 7e40372522c("app/testpmd: fix interactive mode with no ports"). 2.after driver is modified, the default RX rings available decreased(now from SW4.2 default number of queues are created according to the single NUMA CPU cores), so modify script to adapt. Signed-off-by: Hongbo Li --- V2: modify the comments test_plans/large_vf_test_plan.rst | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/test_plans/large_vf_test_plan.rst b/test_plans/large_vf_test_plan.rst index e043a660..0f2318de 100644 --- a/test_plans/large_vf_test_plan.rst +++ b/test_plans/large_vf_test_plan.rst @@ -264,25 +264,29 @@ Subcase 5: PF fdir + large VF fdir co-exist Start testpmd on VF0 with 256 queues. -Create 10 rules on PF0, queue from [54~63]:: +Get RX rings available on DUT :: - ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.21 src-port 22 action 63 - ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.22 src-port 22 action 62 - ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.23 src-port 22 action 61 + ethtool -n enp96s0f0 + +Create 10 rules on PF0, and the actions decrease from the maximum value of RX rings available:: + + ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.21 src-port 22 action 35 + ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.22 src-port 22 action 34 + ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.23 src-port 22 action 33 ... - ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.30 src-port 22 action 54 + ethtool -N enp96s0f0 flow-type udp4 dst-ip 192.168.0.30 src-port 22 action 26 Check rules on PF:: ethtool -n enp96s0f0 -Send matched patches to PF:: +Send matched packet to PF:: pkt1=Ether(dst="00:00:00:00:01:00")/IP(src=RandIP(),dst="192.168.0.21")/UDP(sport=22,dport=23)/Raw('x'*80) ...... pkt10=Ether(dst="00:00:00:00:01:00")/IP(src=RandIP(),dst="192.168.0.30")/UDP(sport=22,dport=23)/Raw('x'*80) -Check PF matched queue [54~63] could receive matched packet:: +Check PF matched queue could receive matched packet:: ethtool -S enp96s0f0 -- 2.17.1