Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3600628pxf; Mon, 15 Mar 2021 13:29:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZo4LmkDFxUyLUt4YjX+yEn9QFQ8s8EllhhKEBx9x8bN3Z7gr+QTnXjmK/in0+zouxbrgJ X-Received: by 2002:a17:906:d114:: with SMTP id b20mr24574679ejz.449.1615840161460; Mon, 15 Mar 2021 13:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615840161; cv=none; d=google.com; s=arc-20160816; b=eVV/aK3COKfR5Tq69SBkBvj6ZLNtuv9EvNmxgY4RpA/I9IUqtZxqYLA1WoTWCNpsR6 3XCXQBwWohSOj7VMlGF6UXsp4wNSweQ7IrFTPoMMAKViZVNemgq+QoXTdkuN9Idukzsg yfE6ey9CjRuicKqxat36Ub9zo3/ZSYcOA3gYQ+kFoudGwzBcG9y33Tom2uSgPo1XpgZM GrxetIctsVavzNuLS4RiWFbW0UEpjomF6sXK/HYyIPBF6RKUONV635FfwoQJ6Q4lUN6J WU+NGRldNxZuR8B5Mq8KmwK38sOIbnMowyB7y8LKtaGYnscJswQjRxq0DmTdJL4b/hw4 S7Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from; bh=4A/aeepyM5jOWuVRtZeqIYmBp0rUlk2uCoY9+J8Z6zQ=; b=rKjMoyMo4niAqS4T9/Lo5+K+31Y0ZY2N3UknRgbBEMEsfFvUNWoVG6tHq5mYmxxHMD WvpZBF2QnCkN1i7C7W10ggHDjcKTiESOo0Ux+4A7ZF8bh812159Y1C99XugkIxhN/UMm z0FdRfUdiZijcJccmgoVBoWKDXFDizW0sgFtFXqljuDGP2l1KDqY8tMEL6ofJoBjF7nB HiAlQu3v0qkhE/8h1yA5aU8/7xjWjVtJxTd+jGL6MZ/GzNjLpBrcNZE5IXZ0jo6T/Ck0 Ob0lAFT7TKLUuFjGNXntxoZlFUEDEm5piThSBY15+vy0zb28mvIw2Qbv3B2WvgnbUyCk /2sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si12571813ejw.362.2021.03.15.13.28.58; Mon, 15 Mar 2021 13:29:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232002AbhCOSK1 (ORCPT + 99 others); Mon, 15 Mar 2021 14:10:27 -0400 Received: from p3plsmtpa11-06.prod.phx3.secureserver.net ([68.178.252.107]:45524 "EHLO p3plsmtpa11-06.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbhCOSKC (ORCPT ); Mon, 15 Mar 2021 14:10:02 -0400 Received: from chrisHP110 ([76.103.216.188]) by :SMTPAUTH: with ESMTPA id LrfEllU8vhFMzLrfFlrIHj; Mon, 15 Mar 2021 11:10:02 -0700 X-CMAE-Analysis: v=2.4 cv=MNClJOVl c=1 sm=1 tr=0 ts=604fa2fa a=ZkbE6z54K4jjswx6VoHRvg==:117 a=ZkbE6z54K4jjswx6VoHRvg==:17 a=kj9zAlcOel0A:10 a=VwQbUJbxAAAA:8 a=28_-FdfHECPUQo66F5MA:9 a=CjuIK1q_8ugA:10 a=AjGcO6oz07-iQ99wixmX:22 X-SECURESERVER-ACCT: don@thebollingers.org From: "Don Bollinger" To: "'Jakub Kicinski'" Cc: "'Andrew Lunn'" , , , , , , , , , , "'netdev'" , "'Moshe Shemesh'" , References: <20210215193821.3345-1-don@thebollingers.org> <000901d70cb2$b2848420$178d8c60$@thebollingers.org> <004f01d70ed5$8bb64480$a322cd80$@thebollingers.org> <003901d711f2$be2f55d0$3a8e0170$@thebollingers.org> <20210305145518.57a765bc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <005e01d71230$ad203be0$0760b3a0$@thebollingers.org> <018701d71772$7b0ba3f0$7122ebd0$@thebollingers.org> <01ae01d71850$db4f5a20$91ee0e60$@thebollingers.org> <20210315103950.65fedf2c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210315103950.65fedf2c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Subject: RE: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS Date: Mon, 15 Mar 2021 11:09:59 -0700 Message-ID: <001201d719c6$6ac826c0$40587440$@thebollingers.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQKX2ThEytgxSBCv+zte4L/P7xUGAgJF1IfoAfArhLgBgnHheQD1wSRRAcnMEPsCilAQ5QM6jzKkAZTVJ60CU9Q9IAIn9Rn1Ajfd1BUB/Wl5Hqg/v1Nw Content-Language: en-us X-CMAE-Envelope: MS4xfIW5HYrvwji0eD8ILQajFORLv6Qwoeg2AYuKR5ZWkFuUcdgaNyVXEFz8rYZR9YMNFdBwTA3us4gXuJ/zxd1toTdVtxEvhwKkSJXQPFpBFWfwgHQCVo4W IVoYSODukTwn3TlPSwzvxKYNp6gHOEWTmnbOD1bmnmdVBQd7DgXcMP1HUrTsohe3lj3mIX40E6jaPuL+E3i34X8Sz5FFwpqvQ5vAiP+ZZBfneRxAaQmuEoBa fiQKKovUHWNHG/Il9BDYOc1cN1CwjJ22VTGt9lx36plY+gTSer3fscixMb/kA9PqE9Yv0BVGroeu8tMZ0ZIthRlELBaWq8QtxORVurQ5MjN9yIrKwIQQJ4Jr fcWVSNjcyART2BhrH0uJyBQQoRbaYwW3SwCo66wyGr5abG93P9Q88ScjFMP8SF34b57Rrdmaang+KNxQYgvAYnI6MAQO4/7TAxZY3t8P+lUBruU1I+jVI1vZ WF6YjfYwcRAY7hUAwKl41F2Ack8AwN5tP/YHotZA9x6zzAcpF8LAE4RGiTbWZtxKta1qurAlk0KODiEBTRgH6AFbrPZEj4FO5KOKnHQ5iLemXqUBvrsQ3d5J Ynws5l1yUQeM5MzTNwpaubaD Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Mar 2021 10:40 -0800 Jakub Kicinski wrote: > On Sat, 13 Mar 2021 13:35:56 -0800 Don Bollinger wrote: > > > away parts of the bottom end and replace it with a different KAPI, > > > and nobody will notice? In fact, this is probably how it was > > > designed. Anybody > > > > Actually everyone who touches this code would notice, each > > implementation would have to be modified, with literally no benefit to this > community. > > You keep saying that kernel API is "of no benefit to this community" > yet you don't want to accept the argument that your code is of no benefit to > the upstream community. I have offered, in every response, to collaborate with the simple integration to use optoe as the default upstream driver to access the module EEPROMs. optoe would be superior to the existing default routines in sfp.c and would allow multiple existing vendor specific upstream drivers to adopt the default. That would reduce the code base they maintain and provide better access to module eeproms. I already adopted the existing EEPROM api to make that integration easy (nvmem). I'm reluctant to submit the changes to sfp.c because I have no expertise in that stack and no platform to test it on. > > > optoe does not undermine the netlink KAPI that Moshe is working on. > > It does, although it may be hard to grasp for a vendor who can just EoL a > product at will once nobody is paying for it. We aim to provide uniform > support for all networking devices and an infinite backward compatibility > guarantee. I aim to provide uniform support for module EEPROM devices, with no less reason to expect an infinite backward compatibility guarantee. (Infinite is a bit much, that technology will inevitably become uninteresting to my community as well as yours.) > > People will try to use optoe-based tools on the upstream drivers and they > won't work. Realistically we will need to support both APIs. I assume they "won't work" because of new requirements or newly discovered defects. At that point optoe would be fixed by people who care, just like any other upstream code. If your stack adopts optoe, through Moshe's KAPI, then both communities benefit from ongoing support to maintain and enhance EEPROM access. If your stack does not adopt optoe, then my community will manage the support, since they need and use the code. As for "both APIs", the first API is Moshe's, which we both support (politically and technically). The second is nvmem, which is supported by the EEPROM driver folks, led by the support for the at24 driver. I'm calling the routines they created for this purpose, I'm not creating a new API. Bottom line: "Realistically we will need to support both APIs" even if optoe does not get accepted. > > > If your community is interested, it could adopt optoe, WITH your KAPI, > > to consolidate and improve module EEPROM access for mainstream netdev > > consumers. I am eager to collaborate on the fairly simple > > integration. > > Nacked-by: Jakub Kicinski > > Please move on. My community still has useful code that they would like in the upstream kernel. Don