Skip to content

e1000/e1000e: limit endianness conversion to boundary words

Agalakov Daniil intel-wired-lan lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- 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.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2e1000: limit endianness conversion to boundary wordsdrivers/net/ethernet/intel/e1000/e1000_ethtool.c+7 -40 replies
2/2e1000e: limit endianness conversion to boundary wordsdrivers/net/ethernet/intel/e1000e/ethtool.c+12 -71 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchAvigail Dahan
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next v3 0/2] e1000/e1000e: limit endianness conversion to boundary words

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(-)
Signature · 1 line
2.51.0