[U-Boot] [PATCH 2/2] net: Increase ethernet name string size to 20 chars

Pankaj Bansal pankaj.bansal at nxp.com
Thu Aug 2 11:01:29 UTC 2018


The 16 char ethernet name size is inadequate to hold the name of ethernet
name "DPMAC17 at rgmii-id", which is a valid name in LX2160AQDS/LX2160ARDB.

Therefore, increase the name string size to 20 chars.

Reported-by: Ioana Ciornei <ioana.ciornei at nxp.com>
Suggested-by: Ioana Ciocoi Radulescu <ruxandra.radulescu at nxp.com>
Signed-off-by: Pankaj Bansal <pankaj.bansal at nxp.com>
---
 include/net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net.h b/include/net.h
index 62f82c4dca..2b2deb5aae 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;
-- 
2.17.1



More information about the U-Boot mailing list