summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>2013-09-17 08:07:28 -0400
committerMike Christie <michaelc@cs.wisc.edu>2013-12-22 22:00:25 -0600
commit360a40f8a83e08a09b34cb12e269c793028b315e (patch)
tree199761c1f364d15793f40bae9e47363872096348 /usr
parent1fa1b51356c0ea6e1d30f2d370b3b766d4230537 (diff)
downloadopen-iscsi-360a40f8a83e08a09b34cb12e269c793028b315e.tar.gz
flashnode: Add support to set ISCSI_FLASHNODE_CHAP_OUT_IDX param
Add support to set the chap_out_idx session param of flashnode entry. Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/flashnode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/flashnode.c b/usr/flashnode.c
index da1392a..fe5ab57 100644
--- a/usr/flashnode.c
+++ b/usr/flashnode.c
@@ -449,6 +449,12 @@ int flashnode_build_config(struct list_head *params,
fnode->sess.portal_type,
sizeof(fnode->sess.portal_type)))
count++;
+ } else if (!strcmp(param->name,
+ to_key(FLASHNODE_SESS_CHAP_OUT_IDX))) {
+ if (!flashnode_fill_uint32(fnode, &iov[count],
+ ISCSI_FLASHNODE_CHAP_OUT_IDX,
+ fnode->sess.chap_out_idx))
+ count++;
} else if (!strcmp(param->name, to_key(FLASHNODE_CONN_PORT))) {
if (fnode->conn[0].port)
port = fnode->conn[0].port;