From patchwork Fri Jun 24 06:38:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 113398 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 86F31A0032; Fri, 24 Jun 2022 08:39:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A29A40A87; Fri, 24 Jun 2022 08:39:11 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id A368540A82 for ; Fri, 24 Jun 2022 08:39:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656052749; x=1687588749; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zq8LNeLp2XiObFAhCMXYo0MPVrrbMtMav1q/JVc2HWU=; b=I2potZFcHD52sHs5i2CP1SwyhyhFThf7v8bEkAl68NBVTxMqwS5FlNSY sgunz7ZJNki8wNIOFYYY3mk+lIbaYMJwhNvhBUdlQ2mJk57r7UfxOwv6K crerhfxCx4Dbgk9CTwlY+1Hm/dfA73hpQrPg7rh2xRXSaexBNCxD0iaCg IU9+0mAYLWIaqhgI8+MQazTx/5y23BiTN1/mC684PtwnkH4PyJv/R/koK vfKeq+hDIhXFD+gQMl44Sle2UY27lAjXrdS8YVJVSC8RmAyiY0DMFw7E+ Fy2G+Y1JWe09HfS7FsgVIm8IAVfVdnN+DVdvxzMSKfliR/WQ7wtsCwZmR g==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="281669501" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="281669501" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 23:39:08 -0700 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="645136122" Received: from shwdenpg560.ccr.corp.intel.com ([10.239.251.200]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 23:39:06 -0700 From: "Li, WeiyuanX" To: dts@dpdk.org Cc: Weiyuan li Subject: [dts][PATCH V1] test_plans/ddp_ppp_l2tp: supplementary case rss_pppol2tp_ipv4 test plan Date: Fri, 24 Jun 2022 14:38:51 +0800 Message-Id: <20220624063851.1495-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.34.1.windows.1 MIME-Version: 1.0 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 From: Weiyuan li Case rss_pppol2tp_ipv4 lost in test plan, supplementary case rss_pppol2tp_ipv4 test plan. Signed-off-by: Weiyuan li --- test_plans/ddp_ppp_l2tp_test_plan.rst | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/test_plans/ddp_ppp_l2tp_test_plan.rst b/test_plans/ddp_ppp_l2tp_test_plan.rst index 206e50d7..35b0d805 100644 --- a/test_plans/ddp_ppp_l2tp_test_plan.rst +++ b/test_plans/ddp_ppp_l2tp_test_plan.rst @@ -387,6 +387,58 @@ Test Case: RSS for PPPoE according to source address p=Ether(src="3C:FD:FE:A3:A0:01", dst="4C:FD:FE:A3:A0:02")/ PPPoE(sessionid=0x7) +Test Case: RSS for PPPoL2TP Ipv4 with default input set +======================================================= + +1. Check flow type to pctype mapping:: + + testpmd> show port 0 pctype mapping + +2. Update PPPoL2TP IPv4 flow type id 23 to pcytpe id 18 mapping item:: + + testpmd> port config 0 pctype mapping update 18 23 + +3. Check flow type to pctype mapping adds 23 this mapping + +4. Reset PPPoL2TP IPv4 hash input set configuration:: + + testpmd> port config 0 pctype 18 hash_inset clear all + +5. Inner source IPv4 words are 15~16 , enable hash input set for them:: + + testpmd> port config 0 pctype 18 hash_inset set field 15 + testpmd> port config 0 pctype 18 hash_inset set field 16 + +6. Enable flow type id 23's RSS:: + + testpmd> port config all rss 23 + +7. Start testpmd, set fwd rxonly, enable output print + +8. Default hash input set are IPv4 SA, IPv4 DA, sport, dport. Send PPPoL2TP + IPv4 packet, check RSS could work, print RTE_MBUF_F_RX_RSS_HASH:: + + p=Ether()/IP()/UDP(dport=1701, sport=1701)/PPP_L2TP(proto=0x0021, session_id=0x7)/ + IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4000, dport=8000)/Raw('x' * 20) + +9. Send different inner source, destination address, sport, dport PPPoL2TP + IPv4 packets, check to receive packet from different queues:: + + p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/ + IP(src="1.1.1.2",dst="2.2.2.2")/UDP(sport=4000, dport=8000)/Raw("X"* 20) + p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/ + IP(src="1.1.1.1",dst="2.2.2.3")/UDP(sport=4000, dport=8000)/Raw("X"* 20) + p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/ + IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4001, dport=8000)/Raw("X"* 20) + p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/ + IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4000, dport=8001)/Raw("X"* 20) + +10. Send different sessionid PPP_L2TP IPv4 packet, check to receive packet + from same queue:: + + p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021, session_id=0x8)/ + IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4000, dport=8000)/Raw("X"* 20) + Test Case: RSS for PPPoL2TP IPv4 according to inner source IPv4 ===============================================================