Searched hist:e696cda7bd091411705a4e868ce480eaa3082dbf (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ |
H A D | macvlan.c | diff e696cda7bd091411705a4e868ce480eaa3082dbf Wed Jun 21 06:59:17 CDT 2017 Vlad Yasevich <vyasevich@gmail.com> macvlan: Fix passthru macvlan mac address inheritance
When a lower device of the passthru macvlan changes it's address, passthru macvlan is supposed to change it's own address as well. However, that doesn't happen correctly because the check in macvlan_addr_busy() will catch the fact that the lower level (port) mac address is the same as the address we are trying to assign to the macvlan, and return an error. As a reasult, the address of the passthru macvlan device is never changed.
The same thing happens when the user attempts to change the mac address of the passthru macvlan.
The simple solution appers to be to not check against the lower device in case of passthru macvlan device, since the 2 addresses are _supposed_ to be the same.
Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|