[PATCH v6 15/20] common/sxe2: add shared SFP module definitions
Stephen Hemminger
stephen at networkplumber.org
Tue Jun 2 22:34:48 CEST 2026
On Tue, 2 Jun 2026 23:52:34 +0800
liujie5 at linkdatatechnology.com wrote:
> From: Jie Liu <liujie5 at linkdatatechnology.com>
>
> This patch adds a new shared header file 'sxe2_msg.h' which
> contains definitions for SFP/SFP+ modules. This file is shared across
> Firmware, Kernel driver, and DPDK PMD to ensure consistent protocol
> handling.
>
> The header includes:
> - SFP EEPROM memory map offsets.
> - Module type encoding definitions.
>
> By using this shared header, the PMD can correctly identify module
> capabilities and report diagnostic information in a way that is
> consistent with the underlying firmware logic.
>
> Signed-off-by: Jie Liu <liujie5 at linkdatatechnology.com>
You never answered the question of why this is in common directory?
It is only used by this driver sxe2.
Common directory is intended for drivers that share code across
multiple devices like net and crypto.
More information about the dev
mailing list