summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorKumar Sanghvi2014-02-18 13:26:09 +0100
committerDavid S. Miller2014-02-18 22:23:00 +0100
commita94cd70521151d107bb069f0c15d1bb7acf302b5 (patch)
tree5c4899ae7576b103d5f7333522acaf8e3ce7559e /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentcxgb4: Add support to recognize 40G links (diff)
downloadkernel-qcow2-linux-a94cd70521151d107bb069f0c15d1bb7acf302b5.tar.gz
kernel-qcow2-linux-a94cd70521151d107bb069f0c15d1bb7acf302b5.tar.xz
kernel-qcow2-linux-a94cd70521151d107bb069f0c15d1bb7acf302b5.zip
cxgb4: Print adapter VPD Part Number instead of Engineering Change field
When we attach to adapter, print VPD Part Number instead of Engineering Change field. Based on original work by Casey Leedom <leedom@chelsio.com> Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index 0c4edd1db761..028b5e540130 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -66,6 +66,7 @@ enum {
SERNUM_LEN = 24, /* Serial # length */
EC_LEN = 16, /* E/C length */
ID_LEN = 16, /* ID length */
+ PN_LEN = 16, /* Part Number length */
};
enum {
@@ -254,6 +255,7 @@ struct vpd_params {
u8 ec[EC_LEN + 1];
u8 sn[SERNUM_LEN + 1];
u8 id[ID_LEN + 1];
+ u8 pn[PN_LEN + 1];
};
struct pci_params {