Explorar o código

cxgb4: increase serial number length

Some boards have longer serial numbers in their VPD, up to 24 bytes.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Dimitris Michailidis %!s(int64=15) %!d(string=hai) anos
pai
achega
47d54d6582
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/net/cxgb4/cxgb4.h

+ 1 - 1
drivers/net/cxgb4/cxgb4.h

@@ -53,7 +53,7 @@
 
 
 enum {
 enum {
 	MAX_NPORTS = 4,     /* max # of ports */
 	MAX_NPORTS = 4,     /* max # of ports */
-	SERNUM_LEN = 16,    /* Serial # length */
+	SERNUM_LEN = 24,    /* Serial # length */
 	EC_LEN     = 16,    /* E/C length */
 	EC_LEN     = 16,    /* E/C length */
 	ID_LEN     = 16,    /* ID length */
 	ID_LEN     = 16,    /* ID length */
 };
 };