]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: setup random mac address
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 13 Oct 2017 18:18:05 +0000 (14:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:30:06 +0000 (18:30 -0700)
commit03969c777abf669797d4b49d7b5c77ae43cb7a8c
treec52d839988bdc854add2a8601e6432f7a6611208
parent5f28d972111e3b278d6cc199ea39128cffcee8cf
net: dsa: mv88e6xxx: setup random mac address

An Ethernet switch may support having a MAC address, which can be used
as the switch's source address in transmitted full-duplex Pause frames.

If a DSA switch supports the related .set_addr operation, the DSA core
sets the master's MAC address on the switch. This won't make sense
anymore in a multi-CPU ports system, because there won't be a unique
master device assigned to a switch tree.

Instead, setup the switch from within the Marvell driver with a random
MAC address, and remove the .set_addr implementation.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c