summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorPankaj Bansal <[email protected]>2018-08-02 16:31:29 +0530
committerYork Sun <[email protected]>2018-08-08 08:23:49 -0700
commit1666fa587bfaa5ab72ea7bb9e2a811494c2a3e7b (patch)
treec441d71f50a5a80a51001aec61998c92ca93c661 /include/net.h
parentc022ec039d3f32a153a1f7d3b1ffe3dd548d9be4 (diff)
net: Increase ethernet name string size to 20 chars
The 16 char ethernet name size is inadequate to hold the name of ethernet name "DPMAC17@rgmii-id", which is a valid name in LX2160AQDS/LX2160ARDB. Therefore, increase the name string size to 20 chars. Reported-by: Ioana Ciornei <[email protected]> Suggested-by: Ioana Ciocoi Radulescu <[email protected]> Signed-off-by: Pankaj Bansal <[email protected]> Reviewed-by: York Sun <[email protected]>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 62f82c4dca7..2b2deb5aaef 100644
--- a/include/net.h
+++ b/include/net.h
@@ -164,7 +164,7 @@ void eth_halt_state_only(void); /* Set passive state */
#ifndef CONFIG_DM_ETH
struct eth_device {
-#define ETH_NAME_LEN 16
+#define ETH_NAME_LEN 20
char name[ETH_NAME_LEN];
unsigned char enetaddr[ARP_HLEN];
phys_addr_t iobase;