diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 0f6e2548f35d..60d6ca2f68c2 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************* | 1 | /******************************************************************* |
2 | * This file is part of the Emulex Linux Device Driver for * | 2 | * This file is part of the Emulex Linux Device Driver for * |
3 | * Fibre Channel Host Bus Adapters. * | 3 | * Fibre Channel Host Bus Adapters. * |
4 | * Copyright (C) 2004-2012 Emulex. All rights reserved. * | 4 | * Copyright (C) 2004-2013 Emulex. All rights reserved. * |
5 | * EMULEX and SLI are trademarks of Emulex. * | 5 | * EMULEX and SLI are trademarks of Emulex. * |
6 | * www.emulex.com * | 6 | * www.emulex.com * |
7 | * Portions Copyright (C) 2004-2005 Christoph Hellwig * | 7 | * Portions Copyright (C) 2004-2005 Christoph Hellwig * |
@@ -6158,12 +6158,44 @@ lpfc_read_fcf_conn_tbl(struct lpfc_hba *phba, | |||
6158 | memcpy(&conn_entry->conn_rec, &conn_rec[i], | 6158 | memcpy(&conn_entry->conn_rec, &conn_rec[i], |
6159 | sizeof(struct lpfc_fcf_conn_rec)); | 6159 | sizeof(struct lpfc_fcf_conn_rec)); |
6160 | conn_entry->conn_rec.vlan_tag = | 6160 | conn_entry->conn_rec.vlan_tag = |
6161 | le16_to_cpu(conn_entry->conn_rec.vlan_tag) & 0xFFF; | 6161 | conn_entry->conn_rec.vlan_tag; |
6162 | conn_entry->conn_rec.flags = | 6162 | conn_entry->conn_rec.flags = |
6163 | le16_to_cpu(conn_entry->conn_rec.flags); | 6163 | conn_entry->conn_rec.flags; |
6164 | list_add_tail(&conn_entry->list, | 6164 | list_add_tail(&conn_entry->list, |
6165 | &phba->fcf_conn_rec_list); | 6165 | &phba->fcf_conn_rec_list); |
6166 | } | 6166 | } |
6167 | |||
6168 | if (!list_empty(&phba->fcf_conn_rec_list)) { | ||
6169 | i = 0; | ||
6170 | list_for_each_entry(conn_entry, &phba->fcf_conn_rec_list, | ||
6171 | list) { | ||
6172 | conn_rec = &conn_entry->conn_rec; | ||
6173 | lpfc_printf_log(phba, KERN_INFO, LOG_INIT, | ||
6174 | "3345 FCF connection list rec[%02d]: " | ||
6175 | "flags:x%04x, vtag:x%04x, " | ||
6176 | "fabric_name:x%02x:%02x:%02x:%02x:" | ||
6177 | "%02x:%02x:%02x:%02x, " | ||
6178 | "switch_name:x%02x:%02x:%02x:%02x:" | ||
6179 | "%02x:%02x:%02x:%02x\n", i++, | ||
6180 | conn_rec->flags, conn_rec->vlan_tag, | ||
6181 | conn_rec->fabric_name[0], | ||
6182 | conn_rec->fabric_name[1], | ||
6183 | conn_rec->fabric_name[2], | ||
6184 | conn_rec->fabric_name[3], | ||
6185 | conn_rec->fabric_name[4], | ||
6186 | conn_rec->fabric_name[5], | ||
6187 | conn_rec->fabric_name[6], | ||
6188 | conn_rec->fabric_name[7], | ||
6189 | conn_rec->switch_name[0], | ||
6190 | conn_rec->switch_name[1], | ||
6191 | conn_rec->switch_name[2], | ||
6192 | conn_rec->switch_name[3], | ||
6193 | conn_rec->switch_name[4], | ||
6194 | conn_rec->switch_name[5], | ||
6195 | conn_rec->switch_name[6], | ||
6196 | conn_rec->switch_name[7]); | ||
6197 | } | ||
6198 | } | ||
6167 | } | 6199 | } |
6168 | 6200 | ||
6169 | /** | 6201 | /** |