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

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