From patchwork Tue Jan 10 15:19:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 121759 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 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 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 From patchwork Tue Jan 10 15:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 121760 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 ACA80423A2; Tue, 10 Jan 2023 08:22:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AABAD42C4D; Tue, 10 Jan 2023 08:22:14 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 0843D40689 for ; Tue, 10 Jan 2023 08:22:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673335333; x=1704871333; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mwYjr+e7MxdAIQgMV8GyDqrOSTrBJFqQsQ0QondjH0A=; b=fltIL1Lu5KQFFBQrBN7ZamBBXo3j0PamBZhRAvoAnsBy9geF6fG00cF1 ezcFFYnXjMVpETLdLP1ucHMI0p2G0dJX//j+Mi+KzMV2bhgGWxNvnU/f/ m4DR9hAlnw+oRuLO2KrrOANl5BgBqMw+/YSh3+t2KlGqRoaKETxNj8XXZ dcHXdEAG3EmhRBrAhSTo+mY/jyoVhzH7qSIUmR6H7noZsMUfihKqa12go A/r3MP89KbvIRKQBTdDmBdarrwMnoSUjc2veBWY4xBxonlckBlhzJrQxr EnQSWE2rSXEb0YvXzPGC4urkLQA6ooGOGZYrWjJmaYacRHfy6/L0xR/He Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="385383983" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="385383983" 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:12 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="606854918" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="606854918" 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:11 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V2 2/2] test_plans/userspace_ethtool: add note to support ixgbe nic Date: Tue, 10 Jan 2023 15:19:55 +0000 Message-Id: <20230110151955.857186-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110151955.857186-1-songx.jiale@intel.com> References: <20230110151955.857186-1-songx.jiale@intel.com> MIME-Version: 1.0 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 Acked-by: Lijuan Tu --- test_plans/userspace_ethtool_test_plan.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_plans/userspace_ethtool_test_plan.rst b/test_plans/userspace_ethtool_test_plan.rst index a0863e0a..24a1571a 100644 --- a/test_plans/userspace_ethtool_test_plan.rst +++ b/test_plans/userspace_ethtool_test_plan.rst @@ -76,6 +76,10 @@ Dump eeprom binary by linux's ethtool and dpdk's ethtool separately:: ethtool --eeprom-dump INTF_0 raw on > ethtool_eeprom_0.bin ethtool --eeprom-dump INTF_1 raw on > ethtool_eeprom_1.bin +.. note:: + In case on ixgbe NIC to read the eeprom, please use 'length' parameter to reduce size to 0x4000. + For example: ethtool --eeprom-dump {INTF} length 0x4000. + Retrieve eeprom on specified port using dpdk's ethtool and compare csum with the file dumped by ethtool::