]> err.no Git - linux-2.6/commitdiff
[SCSI] qla4xxx: add iscsi_transport capps for fw capacilities
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 30 May 2007 17:57:22 +0000 (12:57 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 2 Jun 2007 19:36:14 +0000 (15:36 -0400)
Userspace will want to know what the driver/FW/HW capabilites
when it comes to some operations like if the hardware can
do discovery or if it can store iscsi info like what target
was used for boot. This patch adds some new caps so userspace
can tell if the driver supports hardware/fw based sendtargets
discovery and if the hardware has some flash which may be
holding or can contain some iscsi target info
.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: David C Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla4xxx/ql4_os.c
include/scsi/iscsi_if.h

index 7502bb4808d6df4a5dc35b8827c060a7f034f2e7..315ab691056fd385687abb473c4666ef9cd8a913 100644 (file)
@@ -102,6 +102,7 @@ static struct scsi_host_template qla4xxx_driver_template = {
 static struct iscsi_transport qla4xxx_iscsi_transport = {
        .owner                  = THIS_MODULE,
        .name                   = DRIVER_NAME,
+       .caps                   = CAP_FW_DB | CAP_SENDTARGETS_OFFLOAD,
        .param_mask             = ISCSI_CONN_PORT | ISCSI_CONN_ADDRESS |
                                  ISCSI_TARGET_NAME | ISCSI_TPGT,
        .host_param_mask        = ISCSI_HOST_HWADDRESS |
index a046a329189cd47d2ed1fb3c4feea8ebe6066a2f..81a542506dfe3123e2b31b949808a677423313c9 100644 (file)
@@ -299,6 +299,8 @@ enum iscsi_host_param {
 #define CAP_MULTI_CONN         0x40
 #define CAP_TEXT_NEGO          0x80
 #define CAP_MARKERS            0x100
+#define CAP_FW_DB              0x200
+#define CAP_SENDTARGETS_OFFLOAD        0x400
 
 /*
  * These flags describes reason of stop_conn() call