Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3716385rdb; Sun, 10 Dec 2023 18:32:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDcQh+903sH/jXQyzfKtSSrRemnkThe6/S49/KKiJVOJBqTMi+NawKudX4WT1xPnlfp1Zd X-Received: by 2002:aa7:88c8:0:b0:6c6:b5ae:15a4 with SMTP id k8-20020aa788c8000000b006c6b5ae15a4mr3983115pff.20.1702261954395; Sun, 10 Dec 2023 18:32:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702261954; cv=none; d=google.com; s=arc-20160816; b=hpWQXlefDVlKUMC6JaIJ9wY0wTXaQuUB02TjvHAgKYl/nFqr8oIX7LSOsNhB70jTKW Q3na9WEn9fqaEpFSRsJ7MAmcpnrESwcENs+e/dU5PasxbG8QnUqlUqKYxrs8etgyXpB5 gHl7cFKjKUF5ftRZkGp/43FW+poWI+b2TnEECuBDuHa8JljVQtRIrqFQAW8OH5+CfbNd ZlHyTSyaVHfrjcZU43ILczUjNvjD8E1QoEbdEIXMmzePrvSIZYYZQcDzeQ50K4c0IUH6 qGnL5eDMhf+Ungri+AjWI3Y3HADLQfvtU7a2DdYKo2pB3JTed1w9T2YnKsoXIB+zo3no V1GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Hbjj4B6jH2AbTN+3Ps8rIgREl6NasA/NyKsFV97JU2o=; fh=28Gsh8p/Rrgoh0ZJgxMb30MiNZzzGa/AucmCEg5DMJI=; b=ZeEtPbS1zsR7p41VWIkMgqLNNkreOpXiGJ64ux6KtFlfy7WbZzMS6aJds/rH6v6Yyq ucnqsHqf43Rtmb76GfDir15s/12NKbvHnTRZA/G7xV0C2X3BJsvp6zbzV1bH+0PVvAiY 8/b7a2B2DrUFCVO0bRJnER81kvWeauUIRbkw6QlaKPruKwkP/WLPr8jahkXr/YPwJBh6 9xPxAvurOgJ/7OhrC1pDasGYS4G6/hKiZaGg0CygTukJsR+orqsmolLisgSTv7sAL6ZL anbuq/oTWy5ipNasTP7tw3CBL63zcK0XYli/v7aTzbuCsqJGtSQtjVKHuKs5Sx+sym4N 3bIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 6-20020a630d46000000b005b7d9aace9dsi5427567pgn.46.2023.12.10.18.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 18:32:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E9FB8806979A; Sun, 10 Dec 2023 18:32:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232355AbjLKCcJ (ORCPT + 99 others); Sun, 10 Dec 2023 21:32:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232890AbjLKCcH (ORCPT ); Sun, 10 Dec 2023 21:32:07 -0500 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8FF0BD; Sun, 10 Dec 2023 18:32:08 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4SpQCk3H1Gz1FDhX; Mon, 11 Dec 2023 10:09:06 +0800 (CST) Received: from kwepemm000007.china.huawei.com (unknown [7.193.23.189]) by mail.maildlp.com (Postfix) with ESMTPS id 138A41A016F; Mon, 11 Dec 2023 10:12:40 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemm000007.china.huawei.com (7.193.23.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 11 Dec 2023 10:12:39 +0800 From: Jijie Shao To: , , , , , CC: , , , , , Subject: [PATCH net-next 6/6] net: sfp: Synchronize some CMIS transceiver modules from ethtool Date: Mon, 11 Dec 2023 10:08:16 +0800 Message-ID: <20231211020816.69434-7-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20231211020816.69434-1-shaojijie@huawei.com> References: <20231211020816.69434-1-shaojijie@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm000007.china.huawei.com (7.193.23.189) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 10 Dec 2023 18:32:32 -0800 (PST) From: Hao Lan Currently, the SFF-8024 Identifier Values that according to the standard support for the Common Management Interface Specification (CMIS) based on standard identifier values in the ethtool is more than in the kernel. When the driver needs to use a newer Identifier Value, the kernel interface does not support it. Therefore, we synchronize the CMIS mode Identifier Values which supported by the ethtool to the kernel. ethtool links: Link:https://lore.kernel.org/all/1471959033-1053-3-git-send-email-vidya@cumulusnetworks.com/ Link:https://lore.kernel.org/all/20200813150826.16680-1-popadrian1996@gmail.com/ Link:https://lore.kernel.org/all/20220207091231.2047315-1-danieller@nvidia.com/ Link:https://lore.kernel.org/all/1623949504-51291-3-git-send-email-moshe@nvidia.com/ Link:https://lore.kernel.org/all/20231030072353.1031217-1-idosch@nvidia.com/ Signed-off-by: Hao Lan Signed-off-by: Jijie Shao --- include/linux/sfp.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/linux/sfp.h b/include/linux/sfp.h index 9346cd44814d..e0b333d9e999 100644 --- a/include/linux/sfp.h +++ b/include/linux/sfp.h @@ -284,6 +284,18 @@ enum { SFF8024_ID_QSFP_8438 = 0x0c, SFF8024_ID_QSFP_8436_8636 = 0x0d, SFF8024_ID_QSFP28_8636 = 0x11, + SFF8024_ID_CXP2 = 0x12, + SFF8024_ID_CDFP = 0x13, + SFF8024_ID_HD4X_FANOUT = 0x14, + SFF8024_ID_HD8X_FANOUT = 0x15, + SFF8024_ID_CDFP_S3 = 0x16, + SFF8024_ID_MICRO_QSFP = 0x17, + SFF8024_ID_QSFP_DD = 0x18, + SFF8024_ID_OSFP = 0x19, + SFF8024_ID_DSFP = 0x1B, + SFF8024_ID_QSFP_PLUS_CMIS = 0x1E, + SFF8024_ID_SFP_DD_CMIS = 0x1F, + SFF8024_ID_SFP_PLUS_CMIS = 0x20, SFF8024_ENCODING_UNSPEC = 0x00, SFF8024_ENCODING_8B10B = 0x01, -- 2.30.0