summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ibmvscsi/ibmvfc.h
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2010-09-09 23:20:42 +0200
committerJames Bottomley <James.Bottomley@suse.de>2010-09-17 04:54:13 +0200
commitd99e5f488ae28d9dfccc84435f4fd29bd1fe1b9b (patch)
tree5ffe7c2218d2ffd563505bd9612656f223f6dbb1 /drivers/scsi/ibmvscsi/ibmvfc.h
parent[SCSI] qla2xxx: ROM lock recovery if fw hangs while holding the lock. (diff)
downloadlinux-d99e5f488ae28d9dfccc84435f4fd29bd1fe1b9b.tar.xz
linux-d99e5f488ae28d9dfccc84435f4fd29bd1fe1b9b.zip
[SCSI] ibmvfc: Log link up/down events
By default, ibmvfc does not log any async events in order to avoid flooding the log with them. Improve on this by logging by default events that are not likely to flood the log, such as link up/down. Having these events in the log will improve the ability to debug issues with ibmvfc. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvfc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.h b/drivers/scsi/ibmvscsi/ibmvfc.h
index 608af394c8cf..ef663e7c9bbc 100644
--- a/drivers/scsi/ibmvscsi/ibmvfc.h
+++ b/drivers/scsi/ibmvscsi/ibmvfc.h
@@ -541,6 +541,12 @@ enum ibmvfc_async_event {
IBMVFC_AE_ADAPTER_FAILED = 0x1000,
};
+struct ibmvfc_async_desc {
+ enum ibmvfc_async_event ae;
+ const char *desc;
+ int log_level;
+};
+
struct ibmvfc_crq {
volatile u8 valid;
volatile u8 format;