Blame SOURCES/0035-flashnode-Add-support-to-set-ISCSI_FLASHNODE_CHAP_OU.patch

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