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 8BF21423A1; Tue, 10 Jan 2023 08:22:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8905840691; Tue, 10 Jan 2023 08:22:13 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id ECCB740689 for ; Tue, 10 Jan 2023 08:22:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673335332; x=1704871332; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fSIhCiumsjos24Fwg9DcPa6m6kbMHVw+thecjk+jJ4Y=; b=bEhGSIMl6guP759fAPBtYNgaNvl/i5JkI6HvygjDRTGNKiD+9futyCKB a0DMqyMkljg0v0nNHgXmIk7f7GcHNUVKcPLn7s51PmC40qWAsS/BlmZI9 m2Mq1kzcpQK+5o7Fr/WUq5nl8ETd1Kd94DR6BDQzHr57dkRazI6SZeurR H3XpmAWPnmN2mVJnURGl0X0uAtTtSL7gG6XYrhUZHkMH6lDAlMSFJ9p8Z c3A19zhKlxJCvKwF5z/LceaQREaVjc/Tqo6p5cY2d9rRPQdRXfhCzQz6O 1yV0HByamUfs44XVOZCu9Ta862Di6e410rlwQF9/DBkPhQaZxR1ZAi8fb w==; X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="385383979" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="385383979" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 23:22:11 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="606854914" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="606854914" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 23:22:09 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V2 1/2] tests/userspace_ethtool: modify dts script to support ixgbe nic Date: Tue, 10 Jan 2023 15:19:54 +0000 Message-Id: <20230110151955.857186-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 according to the solution provided by the EPG team, if you read eeprom on the ixgbe nic, use the "length" parameter to reduce the 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