374005d
From 360a40f8a83e08a09b34cb12e269c793028b315e Mon Sep 17 00:00:00 2001
374005d
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
374005d
Date: Tue, 17 Sep 2013 08:07:28 -0400
374005d
Subject: [PATCH] flashnode: Add support to set ISCSI_FLASHNODE_CHAP_OUT_IDX
374005d
 param
374005d
374005d
Add support to set the chap_out_idx session param of flashnode
374005d
entry.
374005d
374005d
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
374005d
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
374005d
---
374005d
 usr/flashnode.c | 6 ++++++
374005d
 1 file changed, 6 insertions(+)
374005d
374005d
diff --git a/usr/flashnode.c b/usr/flashnode.c
374005d
index da1392a..fe5ab57 100644
374005d
--- a/usr/flashnode.c
374005d
+++ b/usr/flashnode.c
374005d
@@ -449,6 +449,12 @@ int flashnode_build_config(struct list_head *params,
374005d
 			    fnode->sess.portal_type,
374005d
 			    sizeof(fnode->sess.portal_type)))
374005d
 				count++;
374005d
+		} else if (!strcmp(param->name,
374005d
+			  to_key(FLASHNODE_SESS_CHAP_OUT_IDX))) {
374005d
+			if (!flashnode_fill_uint32(fnode, &iov[count],
374005d
+			    ISCSI_FLASHNODE_CHAP_OUT_IDX,
374005d
+			    fnode->sess.chap_out_idx))
374005d
+				count++;
374005d
 		} else if (!strcmp(param->name, to_key(FLASHNODE_CONN_PORT))) {
374005d
 			if (fnode->conn[0].port)
374005d
 				port = fnode->conn[0].port;
374005d
-- 
374005d
1.8.3.1
374005d