Skip to content

ethernet: add eth_hw_addr_gen() for switches

Jakub Kicinski netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6ethernet: add a helper for assigning port addressesinclude/linux/etherdevice.h+21 -03 repliesApplied
2/6ethernet: ocelot: use eth_hw_addr_gen()drivers/net/ethernet/mscc/ocelot_net.c+1 -21 replyApplied
3/6ethernet: prestera: use eth_hw_addr_gen()drivers/net/ethernet/marvell/prestera/prestera_main.c+5 -20 repliesApplied
4/6ethernet: fec: use eth_hw_addr_gen()drivers/net/ethernet/freescale/fec_main.c+1 -41 replyApplied
5/6ethernet: mlxsw: use eth_hw_addr_gen()drivers/net/ethernet/mellanox/mlxsw/minimal.c drivers/net/ethernet/mellanox/mlxsw/spectrum.c+7 -111 replyApplied
6/6ethernet: sparx5: use eth_hw_addr_gen()drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c+1 -30 repliesApplied

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchVladimir OlteanShannon NelsonIdo Schimmel
1/6R-b R-b R-b
2/6R-b
3/6
4/6R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net-next 0/6] ethernet: add eth_hw_addr_gen() for switches

While doing the last polishing of the drivers/ethernet changes I realized we have a handful of drivers offsetting some base MAC addr by an id. So I decided to add a helper for it. The helper takes care of wrapping which is probably not 100% necessary but seems like a good idea. And it saves driver side LoC (the diffstat is actually negative if we compare against the changes I'd have to make if I was to convert all these drivers to not operate directly on netdev->dev_addr).

Jakub Kicinski (6):
ethernet: add a helper for assigning port addresses
ethernet: ocelot: use eth_hw_addr_gen()
ethernet: prestera: use eth_hw_addr_gen()
ethernet: fec: use eth_hw_addr_gen()
ethernet: mlxsw: use eth_hw_addr_gen()
ethernet: sparx5: use eth_hw_addr_gen()

 drivers/net/ethernet/freescale/fec_main.c     |  5 +----
 .../ethernet/marvell/prestera/prestera_main.c |  7 +++++--
 drivers/net/ethernet/mellanox/mlxsw/minimal.c | 10 +++------
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  8 +++----
 .../ethernet/microchip/sparx5/sparx5_netdev.c |  4 +---
 drivers/net/ethernet/mscc/ocelot_net.c        |  3 +--
 include/linux/etherdevice.h                   | 21 +++++++++++++++++++
 7 files changed, 36 insertions(+), 22 deletions(-)
Signature · 1 line
2.31.1