Commit 1666fa587bfaa5ab72ea7bb9e2a811494c2a3e7b

Authored by Pankaj Bansal
Committed by York Sun
1 parent c022ec039d

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 <ioana.ciornei@nxp.com>
Suggested-by: Ioana Ciocoi Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -164,7 +164,7 @@
164 164  
165 165 #ifndef CONFIG_DM_ETH
166 166 struct eth_device {
167   -#define ETH_NAME_LEN 16
  167 +#define ETH_NAME_LEN 20
168 168 char name[ETH_NAME_LEN];
169 169 unsigned char enetaddr[ARP_HLEN];
170 170 phys_addr_t iobase;