From patchwork Fri Apr 30 15:48:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 92466 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 D65F7A0547; Fri, 30 Apr 2021 09:12:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E6A3410F6; Fri, 30 Apr 2021 09:12:32 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id DD13E40693 for ; Fri, 30 Apr 2021 09:12:30 +0200 (CEST) IronPort-SDR: dBESNTgjbF87o2K6MoPcExfXhhEcREy15Z2hxSAfsx/u/Uqpo6zPQi0xyFMlMNdgtdgLifYqNX 38lHEiXVsQJw== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="217952564" X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="217952564" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2021 00:12:30 -0700 IronPort-SDR: lh8SbO/f0SFvH13/VbRb+2/H2oli4obHZVKHhKhAOaoTgW4e++Abf7YMBcQa+YGDPtU4uq/hfh givuqPviYl3A== X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="424727906" Received: from unknown (HELO DPDK-CVL-tetser102.icx.intel.com) ([10.240.183.102]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2021 00:12:29 -0700 From: Lingli Chen To: dts@dpdk.org Cc: Lingli Chen Date: Fri, 30 Apr 2021 15:48:12 +0000 Message-Id: <20210430154813.15699-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210430154813.15699-1-linglix.chen@intel.com> References: <20210430154813.15699-1-linglix.chen@intel.com> Subject: [dts] [PATCH V1 1/2] tests/mtu_update: modify igb and igc critical values 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" According to dpdk-26436:If LPE is 1b,the maximum packet size that Foxville can receive is defined in the RLPML.RLPML register.The RLPML.RLPML register was set to MTU + 14 + 4 bytes (must consider at lease 1 VLAN tag since VLAN tag is not included in MTU). Signed-off-by: Lingli Chen --- tests/TestSuite_mtu_update.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.py index 5fa17c97..f1da8660 100644 --- a/tests/TestSuite_mtu_update.py +++ b/tests/TestSuite_mtu_update.py @@ -108,7 +108,7 @@ class TestMtuUpdate(TestCase): # The packet total size include ethernet header, ip header, and payload. # ethernet header length is 18 bytes, ip standard header length is 20 bytes. # pktlen = pktsize - ETHER_HEADER_LEN - if self.kdriver == "ixgbe": + if self.kdriver in ["igb", "igc", "ixgbe"]: max_pktlen = pktsize + ETHER_HEADER_LEN + VLAN padding = max_pktlen - IP_HEADER_LEN - ETHER_HEADER_LEN-VLAN else: @@ -172,7 +172,7 @@ class TestMtuUpdate(TestCase): self.port_mask = utils.create_mask([self.rx_port, self.tx_port]) self.pmdout = PmdOutput(self.dut) - self.set_mtu(ETHER_JUMBO_FRAME_MTU + 600) + self.set_mtu(ETHER_JUMBO_FRAME_MTU + 200) def set_up(self): """ @@ -240,10 +240,17 @@ class TestMtuUpdate(TestCase): self.exec("port start all") self.exec("set fwd mac") self.exec("start") - - self.send_packet_of_size_to_tx_port(packet_size - 1, received=True) - self.send_packet_of_size_to_tx_port(packet_size, received=True) - self.send_packet_of_size_to_tx_port(packet_size + 1, received=False) + """ + On 1G NICs, when the jubmo frame MTU set > 1500, the software adjust it to MTU+4. + """ + if self.nic in ["powerville", "springville", "foxville"] and packet_size > 1500: + self.send_packet_of_size_to_tx_port(packet_size + 4 - 1, received=True) + self.send_packet_of_size_to_tx_port(packet_size + 4, received=True) + self.send_packet_of_size_to_tx_port(packet_size + 4 + 1, received=False) + else: + self.send_packet_of_size_to_tx_port(packet_size - 1, received=True) + self.send_packet_of_size_to_tx_port(packet_size, received=True) + self.send_packet_of_size_to_tx_port(packet_size + 1, received=False) self.exec("stop") self.pmdout.quit() From patchwork Fri Apr 30 15:48:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 92467 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 9F4FEA0548; Fri, 30 Apr 2021 09:12:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90FBD4069E; Fri, 30 Apr 2021 09:12:33 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 38B1540693 for ; Fri, 30 Apr 2021 09:12:32 +0200 (CEST) IronPort-SDR: pTXYrqSMkpe3CcTZOjri1UMsKnAgzpZKbFtxVXuwJgeFnZfKX/Q2/njXmVj1LFS47AqNdfHDzc yPk2316Kn70A== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="217952566" X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="217952566" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2021 00:12:31 -0700 IronPort-SDR: uOjCqAqMWwlrh+6ka20CAwZ7TlD8BMQqjF7dlwEQ0wP9tjeeiuwJW+cp63JDIEOEjenoS9hr3T KCnVwudjRGiQ== X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="424727923" Received: from unknown (HELO DPDK-CVL-tetser102.icx.intel.com) ([10.240.183.102]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2021 00:12:30 -0700 From: Lingli Chen To: dts@dpdk.org Cc: Lingli Chen Date: Fri, 30 Apr 2021 15:48:13 +0000 Message-Id: <20210430154813.15699-3-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210430154813.15699-1-linglix.chen@intel.com> References: <20210430154813.15699-1-linglix.chen@intel.com> Subject: [dts] [PATCH V1 2/2] tests/shutdown_api: modify igb pktSize 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" According to dpdk commit ddbc8c16a97f ("net/e1000: fix max Rx packet size"). modify igb pktSize. Signed-off-by: Lingli Chen --- tests/TestSuite_shutdown_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index 79d0bdd7..03eb89ab 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -616,7 +616,7 @@ class TestShutdownApi(TestCase): self.dut.send_expect("port start all", "testpmd> ", 100) self.dut.send_expect("start", "testpmd> ") - if self.nic in ['magnolia_park', 'niantic', 'twinpond', 'kawela_4', 'ironpond', 'springfountain', 'springville', 'powerville', 'sageville', 'sagepond']: + if self.nic in ['magnolia_park', 'niantic', 'twinpond', 'kawela_4', 'ironpond', 'springfountain', 'sageville', 'sagepond']: # nantic vlan length will not be calculated vlan_jumbo_size = jumbo_size + 4 else: @@ -639,7 +639,7 @@ class TestShutdownApi(TestCase): """ On 1G NICs, when the jubmo frame MTU set as X, the software adjust it to (X + 4). """ - if self.nic in ["powerville", "springville", "kawela_4"]: + if self.nic in ["kawela_4"]: jumbo_size += 4 self.check_forwarding(pktSize=jumbo_size - 1) self.check_forwarding(pktSize=jumbo_size)