OSDN Git Service

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)
commit04a69a17597c1366d764926577745dca4aa6b100
treec52d839988bdc854add2a8601e6432f7a6611208
parentec0d0987f084cdaf7b7ff8bd8f9f946e29fb8d94
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