mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
net: Define eth_stp_addr in linux/etherdevice.h
The lan9303 driver defines eth_stp_addr as a synonym to eth_reserved_addr_base to get the STP ethernet address 01:80:c2:00:00:00. eth_reserved_addr_base is also used to define the start of Bridge Reserved ethernet address range, which happen to be the STP address. br_dev_setup refer to eth_reserved_addr_base as a definition of STP address. Clean up by: - Move the eth_stp_addr definition to linux/etherdevice.h - Use eth_stp_addr instead of eth_reserved_addr_base in br_dev_setup. Signed-off-by: Egil Hjelmeland <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
25c5f71538
commit
054287295b
3 changed files with 2 additions and 3 deletions
|
|
@ -421,7 +421,7 @@ void br_dev_setup(struct net_device *dev)
|
|||
br->bridge_id.prio[0] = 0x80;
|
||||
br->bridge_id.prio[1] = 0x00;
|
||||
|
||||
ether_addr_copy(br->group_addr, eth_reserved_addr_base);
|
||||
ether_addr_copy(br->group_addr, eth_stp_addr);
|
||||
|
||||
br->stp_enabled = BR_NO_STP;
|
||||
br->group_fwd_mask = BR_GROUPFWD_DEFAULT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue