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 56669A0C52; Wed, 24 Nov 2021 10:23:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28C4140A4B; Wed, 24 Nov 2021 10:23:05 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id AAFD24003C for ; Wed, 24 Nov 2021 10:23:03 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10177"; a="215269572" X-IronPort-AV: E=Sophos;i="5.87,260,1631602800"; d="scan'208";a="215269572" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2021 01:23:02 -0800 X-IronPort-AV: E=Sophos;i="5.87,260,1631602800"; d="scan'208";a="509805666" Received: from unknown (HELO dpdk.lan) ([10.240.183.77]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2021 01:23:00 -0800 From: Lewei Yang To: dts@dpdk.org Cc: Lewei Yang Subject: [dts][PATCH V1] tests/mtu_update:igc can receive packets 8 larger than MTU Date: Wed, 24 Nov 2021 17:23:43 +0000 Message-Id: <20211124172343.132742-1-leweix.yang@intel.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 According to dpdk commit 1bb4a528c41f("ethdev: fix max Rx packet length"), there is a miss accuracy in the MTU configuration in DPDK, packets bigger (up to 8 bytes) than requested MTU can be received. Signed-off-by: Lewei Yang --- tests/TestSuite_mtu_update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.py index ad13a8ab..be114759 100644 --- a/tests/TestSuite_mtu_update.py +++ b/tests/TestSuite_mtu_update.py @@ -239,9 +239,9 @@ class TestMtuUpdate(TestCase): 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) + self.send_packet_of_size_to_tx_port(packet_size + 8 - 1, received=True) + self.send_packet_of_size_to_tx_port(packet_size + 8, received=True) + self.send_packet_of_size_to_tx_port(packet_size + 8 + 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) -- 2.33.1