projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fcc800
)
net: macvlan: inherit addr_assign_type along with dev_addr
author
Bjørn Mork
<bjorn@mork.no>
Fri, 30 Aug 2013 16:08:47 +0000
(18:08 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 4 Sep 2013 00:57:49 +0000
(20:57 -0400)
A device inheriting a random or set address should reflect this in
its addr_assign_type.
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/macvlan.c
b/drivers/net/macvlan.c
index 201ef1712ef5cfc9366b10519c142829a975d1af..64dfaa303dcc943f34286604b080cd657895cbc7 100644
(file)
--- a/
drivers/net/macvlan.c
+++ b/
drivers/net/macvlan.c
@@
-823,7
+823,7
@@
int macvlan_common_newlink(struct net *src_net, struct net_device *dev,
if (port->count)
return -EINVAL;
port->passthru = true;
-
memcpy(dev->dev_addr, lowerdev->dev_addr, ETH_ALEN
);
+
eth_hw_addr_inherit(dev, lowerdev
);
}
err = netdev_upper_dev_link(lowerdev, dev);