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 383CAA00C2; Fri, 6 Jan 2023 04:30:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F2654067C; Fri, 6 Jan 2023 04:30:27 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id E3CC94021F for ; Fri, 6 Jan 2023 04:30:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672975825; x=1704511825; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=57ktI6/VR/71JxcVT89vBvn8U9d3nEbDlVdo6QS1suY=; b=PA/uwLOhnnHhXdVitHnNkTntfGxIdATAfv7vuj9wzGG1B8WZ8epBXVKl +7V1F3JtEtiHlx6pqOwHcLEYkl1t47K3hAz7FCeJuC6kPNmcRus34NZWB pYXirMOU2LhsQXVj4lqFQgHHA874VqiBhAMNbEVc1UfuHDCdLwtp48Pjk a8xBZShwX4rr1sacf9KAtRJPRmpyZuSNVoJvMs6AdhxRKyx3oIFXObB1u J+La0jbWM/sRdX4zHhBPysOflpyVSQWDZ0gVgqbxCUn02ABj8RzfHV+9N eUJSlxbmR3l/npAoNJslrNqDTu4dLlgNucbjgG1hJ3UpPKJHaiS/TxYjZ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="305912148" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="305912148" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 19:30:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="605779551" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="605779551" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 19:30:22 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1 1/2] tests/userspace_ethtool: modify dts script to support 82599 NIC Date: Fri, 6 Jan 2023 11:28:11 +0000 Message-Id: <20230106112812.324038-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.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 in case on 82599 NIC to read the eeprom, please use 'length' parameter to reduce size to 0x4000. Signed-off-by: Song Jiale --- tests/TestSuite_userspace_ethtool.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index d8db9073..b62e732f 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -406,6 +406,17 @@ class TestUserspaceEthtool(TestCase): self.dut.send_expect( "ethtool --eeprom-dump %s raw on > %s" % (intf, ethtool_eeprom), "# " ) + if self.kdriver == "ixgbe": + self.dut.send_expect( + "ethtool --eeprom-dump %s length 0x4000 raw on > %s" + % (intf, ethtool_eeprom), + "# ", + ) + else: + self.dut.send_expect( + "ethtool --eeprom-dump %s raw on > %s" % (intf, ethtool_eeprom), + "# ", + ) # wait for file ready time.sleep(2) # dpdk userspcae tools dump eeprom file size different with kernel ethtool dump -- 2.25.1