Skip to content

support unique MAC addresses for slave devices

Marco Chiappero netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ipvlan: fix coding style for the ipvlan treedrivers/net/ipvlan/ipvlan_core.c drivers/net/ipvlan/ipvlan_main.c drivers/net/ipvlan/ipvtap.c+31 -300 replies
2/9ipvlan: refactor ipvlan_process_multicast for readabilitydrivers/net/ipvlan/ipvlan_core.c+57 -500 replies
3/9ipvlan: replace ipvlan_rcv_framedrivers/net/ipvlan/ipvlan_core.c+30 -280 replies
4/9ipvlan: rework the IP lookup functiondrivers/net/ipvlan/ipvlan_core.c+52 -1350 replies
5/9ipvlan: improve and uniform namingdrivers/net/ipvlan/ipvlan_core.c+14 -150 replies
6/9ipvlan: reposition three functionsdrivers/net/ipvlan/ipvlan_core.c+40 -400 replies
7/9ipvlan: relocate ipvlan_skb_crossing_ns callsdrivers/net/ipvlan/ipvlan_core.c+16 -90 replies
8/9ipvlan: improve compiler hintsdrivers/net/ipvlan/ipvlan_core.c+3 -33 replies
9/9ipvlan: introduce individual MAC addressesdrivers/net/ipvlan/ipvlan.h drivers/net/ipvlan/ipvlan_core.c drivers/net/ipvlan/ipvlan_main.c+111 -2211 replies

Reviews trailers per patch

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

PatchMarco Chiappero
1/9
2/9T-b
3/9T-b
4/9T-b
5/9T-b
6/9
7/9
8/9
9/9T-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/9] support unique MAC addresses for slave devices

Currently every slave device gets assigned the same MAC address, by having it copied from the master interface. Since some code paths depend on this identity, changing the MAC address on slave interfaces is not supported. However identical MAC addresses can pose problems to management and orchestration software that correctly expect network interfaces on the same segment to have unique addresses.

Patches 1-8 include style fixes and refactoring (patch 9 depends upon) that improve the overal quality and make the intruduction of the feature straightforward.

Patch 9 enables slave devices to own unique MAC addresses and change such addresses live, fixing lack of support and a related bug, as MAC address changes on master were not propagated to slave devices. In order to preserve the main peculiarity of this driver, that is exposing only a single MAC address for outbound traffic, frames egressing from master are now effectively masquerated when working in L2 mode.

Marco Chiappero (9):
ipvlan: fix coding style for the ipvlan tree
ipvlan: refactor ipvlan_process_multicast for readability
ipvlan: replace ipvlan_rcv_frame
ipvlan: rework the IP lookup function
ipvlan: improve and uniform naming
ipvlan: reposition three functions
ipvlan: relocate ipvlan_skb_crossing_ns calls
ipvlan: improve compiler hints
ipvlan: introduce individual MAC addresses

 drivers/net/ipvlan/ipvlan.h      |   2 +-
 drivers/net/ipvlan/ipvlan_core.c | 592 ++++++++++++++++++++-------------------
 drivers/net/ipvlan/ipvlan_main.c |  49 ++--
 drivers/net/ipvlan/ipvtap.c      |   1 +
 4 files changed, 333 insertions(+), 311 deletions(-)
Signature · 13 lines
2.9.3

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.