Skip to content

optimize procedure of changing MAC address on interface

Piotr Gardocki intel-wired-lan netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 11 repliesApplied 3/3
  2. v23 patches 17 repliesSuperseded
  3. v11 patch 7 repliesSuperseded

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: add check for current MAC address in dev_set_mac_addressnet/core/dev.c+2 -01 replyApplied
2/3i40e: remove unnecessary check for old MAC == new MACdrivers/net/ethernet/intel/i40e/i40e_main.c+0 -61 replyApplied
3/3ice: remove unnecessary check for old MAC == new MACdrivers/net/ethernet/intel/ice/ice_main.c+0 -51 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/3R-b
2/3R-b
3/3R-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/3] optimize procedure of changing MAC address on interface

The first patch adds an if statement in core to skip early when the MAC address is not being changes.
The remaining patches remove such checks from Intel drivers as they're redundant at this point.

v3: removed "This patch ..." from first patch to simplify sentence.
v2: modified check in core to support addresses of any length, removed redundant checks in i40e and ice

Piotr Gardocki (3):
net: add check for current MAC address in dev_set_mac_address
i40e: remove unnecessary check for old MAC == new MAC
ice: remove unnecessary check for old MAC == new MAC

 drivers/net/ethernet/intel/i40e/i40e_main.c | 6 ------
 drivers/net/ethernet/intel/ice/ice_main.c   | 5 -----
 net/core/dev.c                              | 2 ++
 3 files changed, 2 insertions(+), 11 deletions(-)
Signature · 1 line
2.34.1