aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_mbx.c
diff options
context:
space:
mode:
authorAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>2013-09-17 07:54:49 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-10-25 04:58:01 -0400
commit26ffd7b45fe91f9051a58c31b98eaf530e0895aa (patch)
tree878915257750a393997d303b08923d90c578d676 /drivers/scsi/qla4xxx/ql4_mbx.c
parent3af142fea7da55718b733b25be9d54ddb87acfcc (diff)
[SCSI] qla4xxx: Add support to set CHAP entries
Provide support to add/update the CHAP entries in adapter's flash using iscsi tools, like Open-iSCSI. Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_mbx.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_mbx.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c
index 121be4298d4c..22cbd005bdf4 100644
--- a/drivers/scsi/qla4xxx/ql4_mbx.c
+++ b/drivers/scsi/qla4xxx/ql4_mbx.c
@@ -1530,8 +1530,20 @@ exit_get_chap:
1530 return ret; 1530 return ret;
1531} 1531}
1532 1532
1533static int qla4xxx_set_chap(struct scsi_qla_host *ha, char *username, 1533/**
1534 char *password, uint16_t idx, int bidi) 1534 * qla4xxx_set_chap - Make a chap entry at the given index
1535 * @ha: pointer to adapter structure
1536 * @username: CHAP username to set
1537 * @password: CHAP password to set
1538 * @idx: CHAP index at which to make the entry
1539 * @bidi: type of chap entry (chap_in or chap_out)
1540 *
1541 * Create chap entry at the given index with the information provided.
1542 *
1543 * Note: Caller should acquire the chap lock before getting here.
1544 **/
1545int qla4xxx_set_chap(struct scsi_qla_host *ha, char *username, char *password,
1546 uint16_t idx, int bidi)
1535{ 1547{
1536 int ret = 0; 1548 int ret = 0;
1537 int rval = QLA_ERROR; 1549 int rval = QLA_ERROR;