[Intel-wired-lan] [PATCH net-next v3 0/2] e1000/e1000e: limit endianness conversion to boundary words

Agalakov Daniil
2026-04-01T12:09:49Z

This series refactors the EEPROM write logic in e1000 and e1000e drivers
to avoid processing uninitialized memory. Instead of looping over the
entire buffer, we now only perform endianness conversion on the boundary
words that were actually read from the hardware.

Patch 1: e1000: limit endianness conversion to boundary words
Patch 2: e1000e: limit endianness conversion to boundary words
---
v3:
- Reverted to v1's "check-then-convert" logic in patch for e1000e: the
return value of e1000_read_nvm() is now checked before performing
le16_to_cpus().
- Removed the redundant full-buffer loops in patch for e1000e that
caused double endianness conversion in v2.

v2:
- Moved these improvements to the 'net-next' tree.
- Improved commit description for clarity.

.../net/ethernet/intel/e1000/e1000_ethtool.c | 11 +++++++----
drivers/net/ethernet/intel/e1000e/ethtool.c | 19 ++++++++++++-------
2 files changed, 19 insertions(+), 11 deletions(-)

--
2.51.0