summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXiaofei Shen <xiaofeis@codeaurora.org>2019-03-29 11:04:58 +0530
committerDavid S. Miller <davem@davemloft.net>2019-04-01 14:57:32 -0700
commita2c7023f7075ca9b80f944d3f20f60e6574538e2 (patch)
treef233ec3606dfa952650e02d2743fed1fa74f83bd /include
parentf5d547676ca068e10934687f59ac1e798eaae87a (diff)
net: dsa: read mac address from DT for slave device
Before creating a slave netdevice, get the mac address from DTS and apply in case it is valid. Signed-off-by: Xiaofei Shen <xiaofeis@codeaurora.org> Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/dsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index ae480bba11f5..0cfc2f828b87 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -140,6 +140,7 @@ struct dsa_port {
unsigned int index;
const char *name;
const struct dsa_port *cpu_dp;
+ const char *mac;
struct device_node *dn;
unsigned int ageing_time;
u8 stp_state;