Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Aug 2026 00:44:16 +0000
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2ece40431fd1 - stable/14 - ixgbe: dispatch PBA string reads through EEPROM ops
Message-ID:  <6a767be0.3e9c5.78154c4f@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=2ece40431fd1a83bd2c9f569464f98fdff153916

commit 2ece40431fd1a83bd2c9f569464f98fdff153916
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-07-28 11:25:48 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-08-08 00:43:11 +0000

    ixgbe: dispatch PBA string reads through EEPROM ops
    
    E610 installs a device-specific PBA string reader, but the public API
    always calls the generic implementation.  Dispatch through the EEPROM
    operation table so device overrides are honored.
    
    Initialize the generic operation for devices that use the ordinary
    EEPROM representation.
    
    Obtained from:  Intel ix 3.4.39
    
    (cherry picked from commit 9cf1aa6e68e4b9dd4a77c67b7b902b9221198e7a)
---
 sys/dev/ixgbe/ixgbe_api.c    | 4 +++-
 sys/dev/ixgbe/ixgbe_common.c | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys/dev/ixgbe/ixgbe_api.c b/sys/dev/ixgbe/ixgbe_api.c
index 3794bb2676f6..a244269be50a 100644
--- a/sys/dev/ixgbe/ixgbe_api.c
+++ b/sys/dev/ixgbe/ixgbe_api.c
@@ -495,7 +495,9 @@ s32 ixgbe_stop_adapter(struct ixgbe_hw *hw)
  **/
 s32 ixgbe_read_pba_string(struct ixgbe_hw *hw, u8 *pba_num, u32 pba_num_size)
 {
-	return ixgbe_read_pba_string_generic(hw, pba_num, pba_num_size);
+	return ixgbe_call_func(hw, hw->eeprom.ops.read_pba_string,
+			       (hw, pba_num, pba_num_size),
+			       IXGBE_NOT_IMPLEMENTED);
 }
 
 /**
diff --git a/sys/dev/ixgbe/ixgbe_common.c b/sys/dev/ixgbe/ixgbe_common.c
index 20c5a13835e0..c4e78a048b49 100644
--- a/sys/dev/ixgbe/ixgbe_common.c
+++ b/sys/dev/ixgbe/ixgbe_common.c
@@ -91,6 +91,7 @@ s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw)
 				      ixgbe_validate_eeprom_checksum_generic;
 	eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_generic;
 	eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_generic;
+	eeprom->ops.read_pba_string = ixgbe_read_pba_string_generic;
 
 	/* MAC */
 	mac->ops.init_hw = ixgbe_init_hw_generic;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a767be0.3e9c5.78154c4f>