aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc.h
diff options
context:
space:
mode:
authorJames Smart <James.Smart@Emulex.Com>2007-04-25 09:52:49 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-05-06 10:33:14 -0400
commit5b8bd0c9be706677327c01df28bf6b54de008f34 (patch)
tree5f5a3461af6821afc621c3368887658530372dd3 /drivers/scsi/lpfc/lpfc.h
parent82085718faa6955c8a78b2e6ac2ad95072ac875a (diff)
[SCSI] lpfc 8.1.12 : Improve diagnostic messages and change local loopback message to KERN_INFO
Improve diagnostic messages and change local loopback message to KERN_INFO Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
-rw-r--r--drivers/scsi/lpfc/lpfc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h
index b7193d1a90f6..da8b6bb09a76 100644
--- a/drivers/scsi/lpfc/lpfc.h
+++ b/drivers/scsi/lpfc/lpfc.h
@@ -247,6 +247,9 @@ struct lpfc_hba {
247#define FC_ABORT_DISCOVERY 0x8000 /* we want to abort discovery */ 247#define FC_ABORT_DISCOVERY 0x8000 /* we want to abort discovery */
248#define FC_NDISC_ACTIVE 0x10000 /* NPort discovery active */ 248#define FC_NDISC_ACTIVE 0x10000 /* NPort discovery active */
249#define FC_BYPASSED_MODE 0x20000 /* NPort is in bypassed mode */ 249#define FC_BYPASSED_MODE 0x20000 /* NPort is in bypassed mode */
250#define FC_LOOPBACK_MODE 0x40000 /* NPort is in Loopback mode */
251 /* This flag is set while issuing */
252 /* INIT_LINK mailbox command */
250 253
251 uint32_t fc_topology; /* link topology, from LINK INIT */ 254 uint32_t fc_topology; /* link topology, from LINK INIT */
252 255
@@ -388,6 +391,13 @@ struct lpfc_hba {
388 struct fc_host_statistics link_stats; 391 struct fc_host_statistics link_stats;
389}; 392};
390 393
394static inline void
395lpfc_set_loopback_flag(struct lpfc_hba *phba) {
396 if (phba->cfg_topology == FLAGS_LOCAL_LB)
397 phba->fc_flag |= FC_LOOPBACK_MODE;
398 else
399 phba->fc_flag &= ~FC_LOOPBACK_MODE;
400}
391 401
392struct rnidrsp { 402struct rnidrsp {
393 void *buf; 403 void *buf;