DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Roman Khromenok <roma55592@yandex.ru>
Cc: dev@dpdk.org, thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru,
	aman.deep.singh@intel.com
Subject: Re: [PATCH 0/4] move module EEPROM decoding to a transceiver library
Date: Fri, 27 Nov 2026 10:44:09 -0800	[thread overview]
Message-ID: <20261127104409.5580b294@phoenix.local> (raw)
In-Reply-To: <20261029181511.1736967-1-roma55592@yandex.ru>

On Thu, 29 Oct 2026 20:15:07 +0200
Roman Khromenok <roma55592@yandex.ru> wrote:

> This is the follow-up of the RFC, for 27.03.
> 
> The SFF module EEPROM decoders do not depend on any device or driver,
> and they are also useful for ports which are not ethdev ports, such as
> kernel ports read with the ethtool ioctls. This series moves them from
> ethdev to a new transceiver library with the rte_transceiver_decode()
> API. ethdev depends on the library for its telemetry command.
> 
> Changes since the RFC, as discussed with Thomas:
> - rte_eth_module_eeprom_parse(), added as experimental in 26.11,
>   is removed instead of being kept as a wrapper.
> - testpmd calls rte_transceiver_decode() directly.
> - The tests no longer depend on ethdev.
> - The ethdev guide links to the library guide instead of
>   duplicating the example.
> 
> The library name is still "transceiver", as it reads better than
> "xcvr". It can be renamed if preferred.
> 
> Release notes will be added when the 27.03 release notes exist.
> 
> The dpdk-proc-info module EEPROM decoding (series 39575) will be
> sent as a v2 on top of this series.
> 
> Tested with gcc, and clang with ASan and UBSan: every patch builds
> without warnings, transceiver_autotest passes, the documentation
> builds without warnings, and the testpmd command decodes a module.
> 
> RFC: https://mails.dpdk.org/archives/dev/2026-October/348542.html
> 
> Roman Khromenok (4):
>   transceiver: introduce module EEPROM decoding library
>   test/transceiver: move module EEPROM decoding tests
>   app/testpmd: decode module EEPROM with transceiver library
>   ethdev: remove module EEPROM decoding wrapper
> 
>  MAINTAINERS                                   |   7 +
>  app/test-pmd/config.c                         |   3 +-
>  app/test-pmd/meson.build                      |   2 +-
>  app/test/meson.build                          |   2 +-
>  ...dev_module_eeprom.c => test_transceiver.c} | 132 +++++++++---------
>  doc/api/doxy-api-index.md                     |   1 +
>  doc/api/doxy-api.conf.in                      |   1 +
>  doc/guides/prog_guide/ethdev/ethdev.rst       |  39 +-----
>  doc/guides/prog_guide/index.rst               |   1 +
>  doc/guides/prog_guide/transceiver_lib.rst     |  86 ++++++++++++
>  lib/ethdev/meson.build                        |   6 +-
>  lib/ethdev/rte_ethdev.c                       |  21 ---
>  lib/ethdev/rte_ethdev.h                       |  57 --------
>  lib/ethdev/sff_telemetry.c                    |  13 +-
>  lib/meson.build                               |   2 +
>  lib/transceiver/meson.build                   |  11 ++
>  lib/transceiver/rte_transceiver.c             |  24 ++++
>  lib/transceiver/rte_transceiver.h             | 102 ++++++++++++++
>  lib/{ethdev => transceiver}/sff_8079.c        |   2 +-
>  lib/{ethdev => transceiver}/sff_8472.c        |   0
>  lib/{ethdev => transceiver}/sff_8636.c        |   4 +-
>  lib/{ethdev => transceiver}/sff_8636.h        |   0
>  lib/{ethdev => transceiver}/sff_common.c      |  28 ++--
>  lib/{ethdev => transceiver}/sff_common.h      |  10 +-
>  24 files changed, 341 insertions(+), 213 deletions(-)
>  rename app/test/{test_ethdev_module_eeprom.c => test_transceiver.c} (83%)
>  create mode 100644 doc/guides/prog_guide/transceiver_lib.rst
>  create mode 100644 lib/transceiver/meson.build
>  create mode 100644 lib/transceiver/rte_transceiver.c
>  create mode 100644 lib/transceiver/rte_transceiver.h
>  rename lib/{ethdev => transceiver}/sff_8079.c (99%)
>  rename lib/{ethdev => transceiver}/sff_8472.c (100%)
>  rename lib/{ethdev => transceiver}/sff_8636.c (99%)
>  rename lib/{ethdev => transceiver}/sff_8636.h (100%)
>  rename lib/{ethdev => transceiver}/sff_common.c (95%)
>  rename lib/{ethdev => transceiver}/sff_common.h (96%)
> 

Needs rebase, and release note.
Something short like:


    * **Restructured module EEPROM transceiver support.**

      Module EEPROM decoding moved from ethdev to the new
      transceiver library, ``rte_eth_module_eeprom_parse()``
      is replaced by ``rte_transceiver_decode()``.

  parent reply	other threads:[~2026-11-27 18:44 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
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 [this message]
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=20261127104409.5580b294@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=aman.deep.singh@intel.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=dev@dpdk.org \
    --cc=roma55592@yandex.ru \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox