From: Ido Schimmel <idosch@nvidia.com>
To: netdev@vger.kernel.org
Cc: mkubecek@suse.cz, danieller@nvidia.com, Ido Schimmel <idosch@nvidia.com>
Subject: [PATCH ethtool 6/8] module-common: Add missing CMIS transmitter technologies
Date: Thu, 16 Jul 2026 09:45:30 +0300 [thread overview]
Message-ID: <20260716064532.1522382-7-idosch@nvidia.com> (raw)
In-Reply-To: <20260716064532.1522382-1-idosch@nvidia.com>
Add missing transmitter technologies from table 8-40 in CMIS 5.3. This
is a prerequisite for the next patch to help us distinguish between
copper and optical transceivers.
Fixes: 88ca347ef35a ("Add QSFP-DD support")
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
module-common.c | 18 ++++++++++++++++++
module-common.h | 5 +++++
2 files changed, 23 insertions(+)
diff --git a/module-common.c b/module-common.c
index ea4514ab3899..f8e4681d8d63 100644
--- a/module-common.c
+++ b/module-common.c
@@ -628,6 +628,24 @@ void module_show_mit_compliance(u16 value)
snprintf(description, SFF_MAX_DESC_LEN, "%s linear active equalizers",
cc);
break;
+ case MODULE_TT_C_BAND_LASER:
+ strncpy(description, "C-band tunable laser", SFF_MAX_DESC_LEN);
+ break;
+ case MODULE_TT_L_BAND_LASER:
+ strncpy(description, "L-band tunable laser", SFF_MAX_DESC_LEN);
+ break;
+ case MODULE_TT_COPPER_NF_LINEAR:
+ snprintf(description, SFF_MAX_DESC_LEN,
+ "%s near and far end linear active equalizers", cc);
+ break;
+ case MODULE_TT_COPPER_F_LINEAR:
+ snprintf(description, SFF_MAX_DESC_LEN,
+ "%s far end linear active equalizers", cc);
+ break;
+ case MODULE_TT_COPPER_N_LINEAR:
+ snprintf(description, SFF_MAX_DESC_LEN,
+ "%s near end linear active equalizers", cc);
+ break;
default:
strncpy(description, "Reserved or unknown", SFF_MAX_DESC_LEN);
break;
diff --git a/module-common.h b/module-common.h
index fba1d36f7f86..e9bf8c19a9bb 100644
--- a/module-common.h
+++ b/module-common.h
@@ -99,6 +99,11 @@ enum module_type {
#define MODULE_TT_COPPER_F_EQUAL 0x0D
#define MODULE_TT_COPPER_N_EQUAL 0x0E
#define MODULE_TT_COPPER_LINEAR_EQUAL 0x0F
+#define MODULE_TT_C_BAND_LASER 0x10
+#define MODULE_TT_L_BAND_LASER 0x11
+#define MODULE_TT_COPPER_NF_LINEAR 0x12
+#define MODULE_TT_COPPER_F_LINEAR 0x13
+#define MODULE_TT_COPPER_N_LINEAR 0x14
/* Module Flags (Page 0) */
#define CMIS_VCC_AW_OFFSET 0x09
--
2.55.0
next prev parent reply other threads:[~2026-07-16 6:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 6:45 [PATCH ethtool 0/8] cmis: Miscellaneous fixes Ido Schimmel
2026-07-16 6:45 ` [PATCH ethtool 1/8] cmis: Fix printing of Tx bias current Ido Schimmel
2026-07-16 6:45 ` [PATCH ethtool 2/8] cmis: Fix printing of channel-level flags Ido Schimmel
2026-07-16 6:45 ` [PATCH ethtool 3/8] cmis: Fix printing of CDB EPL pages Ido Schimmel
2026-07-16 6:45 ` [PATCH ethtool 4/8] module-common: Fix printing of transmitter technology for CMIS transceivers Ido Schimmel
2026-07-16 6:45 ` [PATCH ethtool 5/8] module-common: Avoid undefined behavior with " Ido Schimmel
2026-07-16 6:45 ` Ido Schimmel [this message]
2026-07-16 6:45 ` [PATCH ethtool 7/8] cmis: Fix printing of attenuation and wavelength Ido Schimmel
2026-07-16 6:45 ` [PATCH ethtool 8/8] cmis: Fix printing of link length Ido Schimmel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260716064532.1522382-7-idosch@nvidia.com \
--to=idosch@nvidia.com \
--cc=danieller@nvidia.com \
--cc=mkubecek@suse.cz \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox