]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: Define eth_stp_addr in linux/etherdevice.h
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Thu, 2 Nov 2017 09:36:48 +0000 (10:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Nov 2017 05:17:39 +0000 (14:17 +0900)
commit054287295b1132c8742ea55f8e3af9cbd630c932
tree95533451c5e68c193ead9fbdf964b34bc0261f1c
parent25c5f715381e0f52993972567fae653b700126fa
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 <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dsa/lan9303.h
include/linux/etherdevice.h
net/bridge/br_device.c