From patchwork Wed Jun 23 08:08:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 466257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C391FC4743C for ; Wed, 23 Jun 2021 08:08:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9AFA260C3F for ; Wed, 23 Jun 2021 08:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbhFWILP (ORCPT ); Wed, 23 Jun 2021 04:11:15 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:52051 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbhFWILO (ORCPT ); Wed, 23 Jun 2021 04:11:14 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 320245805A2; Wed, 23 Jun 2021 04:08:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 23 Jun 2021 04:08:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=m98Jzuc367jxXvbeE hg9koiEhwLhRzYcHLurko353sg=; b=JRo/7vCUsUiIezXzVmgIH4QikiBU6KeDh NOmD5ac7EfbdgTmlnMKkV0TjbzcPVN7n5Wyx8ok+aWKo5Nr/XVPKkLTMItwB3yjk /Any05X9eFs0yDjY2dJnDVeWHXqGxV/lv6Zzmy7hJdDhF6f/adqk87ekQQroAWaH VV4dMODaES433CcBS2v9h0ouUdzqpovfTUX6PDDhrhs6iQRRli+/nCgKPRxTHYKP RCJZmHJkPAu0F4NiZruBPAmhCUId+HhX9suOVAlXhWaT7KFrwdwib4N/oI/A9tTb O1faYd5YI2NUhOSDsgATvIa8ssRz3mWtJdDfmONsmN5hS5GX1k3gg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeegfedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecuggftrfgrthhtvghrnhepleeuffeukeejteeugfdvgfdtheefgfejud ethfdtveeujedvkefguddvudfhjeefnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiughosh gthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Jun 2021 04:08:53 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, jiri@nvidia.com, andrew@lunn.ch, vladyslavt@nvidia.com, moshe@nvidia.com, vadimp@nvidia.com, mkubecek@suse.cz, mlxsw@nvidia.com, Ido Schimmel Subject: [RFC PATCH ethtool-next 0/2] ethtool: Add ability to write to transceiver module EEPROMs Date: Wed, 23 Jun 2021 11:08:23 +0300 Message-Id: <20210623080825.2612270-1-idosch@idosch.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Patch #1 updates the UAPI headers. Patch #2 adds the actual implementation. See the commit message for example output. Patches are on top of [1] which are currently under review. Refer to [2] for more background information. [1] https://patchwork.kernel.org/project/netdevbpf/cover/1623949504-51291-1-git-send-email-moshe@nvidia.com/ [2] https://patchwork.kernel.org/project/netdevbpf/cover/20210623075925.2610908-1-idosch@idosch.org/ Ido Schimmel (2): Update UAPI header copies ethtool: Add ability to write to transceiver module EEPROM ethtool.8.in | 29 ++++++++ ethtool.c | 10 +++ netlink/desc-ethtool.c | 2 + netlink/extapi.h | 2 + netlink/module-eeprom.c | 125 ++++++++++++++++++++++++++++++++++- netlink/monitor.c | 4 ++ netlink/netlink.h | 1 + uapi/linux/ethtool.h | 4 +- uapi/linux/ethtool_netlink.h | 4 +- uapi/linux/if_link.h | 9 +++ uapi/linux/netlink.h | 5 +- 11 files changed, 188 insertions(+), 7 deletions(-)