Skip to content

macvlan: Fix some issues with changing mac addresses

Vladislav Yasevich netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4macvlan: Do not return error when setting the same mac addressdrivers/net/macvlan.c+4 -00 replies
2/4macvlan: Fix passthru macvlan mac address inheritancedrivers/net/macvlan.c+2 -10 replies
3/4macvlan: convert port passthru to flags.drivers/net/macvlan.c+24 -130 replies
4/4macvlan: Let passthru macvlan correctly restore lower mac addressdrivers/net/macvlan.c+44 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 net 0/4] macvlan: Fix some issues with changing mac addresses

There are some issues in macvlan wrt to changing it's mac address.
* An error is returned in the specified address is the same as an already assigned address.
* In passthru mode, the mac address of the macvlan device doesn't change.
* After changing the mac address of a passthru macvlan and then removing it, the mac address of the physical device remains changed.

This patch series attempts to resolve these issues.

V2: Address a small issue in p4 where we save the address from the lowerdev
(from [email protected])

Thanks
-vlad

Vladislav Yasevich (4):
macvlan: Do not return error when setting the same mac address
macvlan: Fix passthru macvlan mac address inheritance
macvlan: convert port passthru to flags.
macvlan: Let passthru macvlan correctly restore lower mac address

 drivers/net/macvlan.c | 85 ++++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 71 insertions(+), 14 deletions(-)
Signature · 1 line
2.9.4