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 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() -- 2.17.1