From: "Morten Brørup" <mb@smartsharesystems.com>
To: "Roman Khromenok" <roma55592@yandex.ru>, <dev@dpdk.org>
Cc: <thomas@monjalon.net>, <stephen@networkplumber.org>,
<andrew.rybchenko@oktetlabs.ru>
Subject: RE: [RFC 0/2] move module EEPROM decoding to a transceiver library
Date: Tue, 3 Nov 2026 07:29:43 +0100 [thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35F65AEF@smartserver.smartshare.dk> (raw)
In-Reply-To: <20261103041851.447193-1-roma55592@yandex.ru>
> From: Roman Khromenok [mailto:roma55592@yandex.ru]
> Sent: Tuesday, 3 November 2026 05.19
>
> 02/11/2026 12:07, Morten Brørup:
> > Are there any APIs to tell if a transceiver module is plugged into
> the
> > transceiver module socket on the NIC, either in the ethdev library or
> > under this new transceiver library?
>
> There is no dedicated "module present" API in DPDK today.
>
> Module presence is only detected indirectly:
> rte_eth_dev_get_module_info()
> and rte_eth_dev_get_module_eeprom() return an error, for example -EIO,
> when no module is plugged, but only for drivers implementing these
> operations (ixgbe, i40e, ice, hns3, cnxk, ...). The link state is not a
> reliable indicator either: a plugged module can be down, and some
> modules (DAC cables) report link without optical diagnostics.
>
> The transceiver library cannot detect presence by design: it works on
> the raw EEPROM bytes only and has no dependency on any device, driver
> or even EAL initialization. This is also what makes it usable for
> kernel ports read with the ethtool ioctls.
>
> Physically, module presence is a MOD_ABS pin of the socket, not
> something that can be read from the EEPROM, so it belongs to the
> driver level. If an explicit presence API is wanted, I think it should
> be a separate ethdev device operation, for example
> .get_module_presence, so drivers could report it without attempting an
> EEPROM read. That would be a follow-up series, independent of this one.
>
> Thanks,
> Roman
Thank you for the detailed reply.
I agree with your conclusions.
-Morten
next prev parent reply other threads:[~2026-11-03 6:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 7:12 [RFC 0/2] move module EEPROM decoding to a transceiver library Roman Khromenok
2026-10-14 7:12 ` [RFC 1/2] transceiver: introduce module EEPROM decoding library Roman Khromenok
2026-10-14 7:12 ` [RFC 2/2] test/transceiver: move module EEPROM decoding tests Roman Khromenok
2026-10-26 20:09 ` [RFC 0/2] move module EEPROM decoding to a transceiver library Roman Khromenok
2026-10-29 16:11 ` Thomas Monjalon
2026-10-29 17:41 ` Roman Khromenok
2026-11-02 11:07 ` Morten Brørup
2026-11-03 4:18 ` Roman Khromenok
2026-11-03 6:29 ` Morten Brørup [this message]
2026-10-29 18:15 ` [PATCH 0/4] " Roman Khromenok
2026-10-29 18:15 ` [PATCH 1/4] transceiver: introduce module EEPROM decoding library Roman Khromenok
2026-10-29 18:15 ` [PATCH 2/4] test/transceiver: move module EEPROM decoding tests Roman Khromenok
2026-10-29 18:15 ` [PATCH 3/4] app/testpmd: decode module EEPROM with transceiver library Roman Khromenok
2026-10-29 18:15 ` [PATCH 4/4] ethdev: remove module EEPROM decoding wrapper Roman Khromenok
2026-10-29 20:52 ` [PATCH 0/4] move module EEPROM decoding to a transceiver library Stephen Hemminger
2026-10-30 5:01 ` Roman Khromenok
2026-11-27 18:44 ` Stephen Hemminger
2026-11-27 20:30 ` [PATCH v2 " Roman Khromenok
2026-11-27 20:30 ` [PATCH v2 1/4] transceiver: introduce module EEPROM decoding library Roman Khromenok
2026-11-27 20:30 ` [PATCH v2 2/4] test/transceiver: move module EEPROM decoding tests Roman Khromenok
2026-11-27 20:30 ` [PATCH v2 3/4] app/testpmd: decode module EEPROM with transceiver library Roman Khromenok
2026-11-27 20:30 ` [PATCH v2 4/4] ethdev: remove module EEPROM decoding wrapper Roman Khromenok
2026-11-28 5:43 ` [PATCH v3 0/4] move module EEPROM decoding to a transceiver library Roman Khromenok
2026-11-28 5:43 ` [PATCH v3 1/4] transceiver: introduce module EEPROM decoding library Roman Khromenok
2026-11-28 5:43 ` [PATCH v3 2/4] test/transceiver: move module EEPROM decoding tests Roman Khromenok
2026-11-28 5:43 ` [PATCH v3 3/4] app/testpmd: decode module EEPROM with transceiver library Roman Khromenok
2026-11-28 5:43 ` [PATCH v3 4/4] ethdev: remove module EEPROM decoding wrapper Roman Khromenok
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=98CBD80474FA8B44BF855DF32C47DC35F65AEF@smartserver.smartshare.dk \
--to=mb@smartsharesystems.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=dev@dpdk.org \
--cc=roma55592@yandex.ru \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.