Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1720160pxf; Fri, 26 Mar 2021 13:17:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVMMEJBPM6CzAHDGjoECH4ojeP2c7QkwSJmlvF+AuaW59uk/OIvxYLJbsz8zohI6qbnr54 X-Received: by 2002:aa7:d917:: with SMTP id a23mr17164862edr.122.1616789867884; Fri, 26 Mar 2021 13:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616789867; cv=none; d=google.com; s=arc-20160816; b=nupM34+mmleykJtfBAEf8tDP1lND7WIp31/1uT5/ibRU73YdvCTEf9FmhzW9I0AfaH 7ZNiVn8vH0QB80MMGGqtWXgoeVmPQAqQgD6GxkZVIJt7cbfwqyYoUbi+s1azP85fvfOJ jFbKfPSuTZf36eFjrrCm23TV7h15rzgY7JPdiDd6oA2tKZ1d9CirCYMGadyUDdCWbsbw b1wvF2OfDF6iQK6nN28I+cHoLJMhX51aAY+fgBnC5NXK6UVUT7Or3FFKyMBmNDSJGRog polRta2vc80617LcOm+UDrAULu92kcZIq+5tIPnY0pfvZKnK7qZRvfqSJLkMEvTkSqeF 5jIQ== 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=idlGfxzorryahJ30GYbcZ3iYqK+7aaQxMCo4iDr6BF0=; b=WeyUUcgma5OYEsMtsHi5my/7D8QpXH9DIC/FIwfTypKqzLyBufWk6P9X7XR2+idJ8j bK7Vm4nTFGYY5YOnTqAOAwePtjmwxuBE8M94oPRgRr5GntNZCoe+dyWygJUMdJqsZXJz 35mfXlqX+d7BrQtxufOr1AZjr5b5r+QlouHgEl7oPX/CUbO6orrRi5sEngSkufcMSKmn NcsElnPr0pEYaCLqg4+Uxc7iTtGdT6mtR5ZSxQ7Rzmss6WIJFEcrJJuRLA3qCgs2RujG mW6qGeLCrII8hTnWn4oXiqRBxId6U/8wPgRQW5gMzDzDLpvgImFhwLBw7ZaNkNnOjT6S bUSA== 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 co11si7167993edb.280.2021.03.26.13.17.25; Fri, 26 Mar 2021 13:17:47 -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 S230236AbhCZUQc (ORCPT + 99 others); Fri, 26 Mar 2021 16:16:32 -0400 Received: from p3plsmtpa06-01.prod.phx3.secureserver.net ([173.201.192.102]:49888 "EHLO p3plsmtpa06-01.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbhCZUQR (ORCPT ); Fri, 26 Mar 2021 16:16:17 -0400 Received: from chrisHP110 ([76.103.216.188]) by :SMTPAUTH: with ESMTPA id PssRluyw95NJSPssSlh2vm; Fri, 26 Mar 2021 13:16:17 -0700 X-CMAE-Analysis: v=2.4 cv=bPLTnNyZ c=1 sm=1 tr=0 ts=605e4111 a=ZkbE6z54K4jjswx6VoHRvg==:117 a=ZkbE6z54K4jjswx6VoHRvg==:17 a=kj9zAlcOel0A:10 a=RhfDxTFQNv-UFsv0dfcA:9 a=CjuIK1q_8ugA:10 a=fCgQI5UlmZDRPDxm0A3o:22 X-SECURESERVER-ACCT: don@thebollingers.org From: "Don Bollinger" To: "'Andrew Lunn'" Cc: "'Jakub Kicinski'" , , , , , , , , , , "'netdev'" , "'Moshe Shemesh'" , References: <018701d71772$7b0ba3f0$7122ebd0$@thebollingers.org> <01ae01d71850$db4f5a20$91ee0e60$@thebollingers.org> <20210315103950.65fedf2c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <001201d719c6$6ac826c0$40587440$@thebollingers.org> <009601d72023$b73dbde0$25b939a0$@thebollingers.org> <011301d7226f$dc2426f0$946c74d0$@thebollingers.org> In-Reply-To: Subject: RE: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS Date: Fri, 26 Mar 2021 13:16:14 -0700 Message-ID: <011901d7227c$e00015b0$a0004110$@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: AQGU1SetidobDDbBbPSeytwVQgsqiAJT1D0gAif1GfUCN93UFQH9aXkeAgikA2gCDVXEaQIaigMZAliqgToBPL7YiwHCMwNMqnmDWgA= Content-Language: en-us X-CMAE-Envelope: MS4xfHyUkELn3EA/B12+Sx+cLF0zxakA4dwqL8EgwX2LLa0yuIIISUC+uguilZXaBcRsorkhuUUB1wEwM4wox2qLZMneKA5MyVmbdZ/cNlJJm/Pnczs/i5u+ iZLUVQS+ri6Ryw8POwfyZK2qAGjUW/Baqb1uf8tawjEykH+ISaexqzFUUSZW+vp3guKIaT1qf+6f0QTs6t2KX5UH0EO+X5q+VbfqvmvKiNAlbmRPmOyMN/OZ qDzLmj+qNNVCmtxsiO/f/qUVN/SkblTDuoryLhqDDabh7ZRnhA2GNxfoNLpmFmM/h0UcA/Evw4bBMI1gfXJdvaGEn265EruAAeVCkye7QvfUAJxLcgp/9ksc UyHEfm4hHz46pK5nLTeLSUbvN/wVe3qnYy6EadZwaOUHGS3GmfXzvxwbiJQyzvHsQRIfCXJfigKmfzd5EklppCPiOPNYZ8xAGHQvhtLrdbINJWmbaKO3xMU5 n8t29LTS37jzdDcgzyjZOSdYm/KvjakPp8j5wv1+A9pVOs7A4fgyEpKErX9/0HJG2qn+jGjV8P7RqFmMTqzm4CxDRaQ4Qf1PA+LW+skegR2nO0HjkiydFH0n mhoBSYbrfsAfxldZvT2SG4YN Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > In my community, the SFP/QSFP/CMIS devices (32 to 128 of them per > > switch) often cost more than the switch itself. Consumers (both > > vendors and > > customers) extensively test these devices to ensure correct and > > reliable operation. Then they buy them literally by the millions. > > Quirks lead to quick rejection in favor of reliable parts from > > reliable vendors. In this environment, for completely different > > reasons, optoe does not need to handle quirks. > > Well, if optoe were to be merged, it would not be just for your community. It > has to work for everybody who wants to use the Linux kernel with an SFP. > You cannot decide to add a KAPI which just supports a subset of SFPs. It > needs to support as many as possible, warts and all. > > So how would you handle these SFPs with the optoe KAPI? Just like they are handled now. Folks who use your stack would filter through sfp.c, with all the quirk handling, and eventually call optoe for the actual device access. Folks who don't use kernel networking would call optoe directly and limit themselves to well behaved SFPs, or would handle quirks in user space. You think that's dumb, but there is clearly a market for that approach. It is working, at scale, today. BTW, why can't we have a driver that only handles devices that work correctly? Indeed, why would we tolerate an endless stream of special cases for each new device that comes along? Don