diff options
author | Vlad Yasevich <vyasevich@gmail.com> | 2017-06-21 14:59:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-22 18:17:42 +0300 |
commit | 18c8c54de9a619ba5533419e0170433e20c0ee3e (patch) | |
tree | 031f1ab28985f41043c067c9481c55cedac30365 /Kbuild | |
parent | 43c2d578a0ce0d6067a02b46461811aced551425 (diff) | |
download | linux-18c8c54de9a619ba5533419e0170433e20c0ee3e.tar.xz |
macvlan: Let passthru macvlan correctly restore lower mac address
Passthru macvlans directly change the mac address of the lower
level device. That's OK, but after the macvlan is deleted,
the lower device is left with changed address and one needs to
reboot to bring back the origina HW addresses.
This scenario is actually quite common with passthru macvtap devices.
This patch attempts to solve this, by storing the mac address
of the lower device in macvlan_port structure and keeping track of
it through the changes.
After this patch, any changes to the lower device mac address
done trough the macvlan device, will be reverted back. Any
changs done directly to the lower device mac address will be kept.
Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions