aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2006-05-02 20:46:47 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-05-10 11:13:21 -0400
commit8d2860b3c3e933304f49171770658c00ed26fd79 (patch)
tree979395449d53d41bd22732a4be1387f9af73a994 /include/scsi
parentbe2df72e7ec5fa5e6e1ccccab6cef97ecbb9c191 (diff)
[SCSI] iscsi: increment expstatsn during login
debugged by Ming and Rohan: The problem Ming and Rohan debugged was that during a normal session login, open-iscsi is not incrementing the exp_statsn counter. It was stuck at zero. From the RFC, it looks like if the login response PDU has a successful status then we should be incrementing that value. Also from the RFC, it looks like if when we drop a connection then reconnect, we should be using the exp_statsn from the old connection in the next relogin attempt. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/iscsi_if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h
index feff74e544b7..253797c60095 100644
--- a/include/scsi/iscsi_if.h
+++ b/include/scsi/iscsi_if.h
@@ -188,6 +188,7 @@ enum iscsi_param {
188 ISCSI_PARAM_ERL, 188 ISCSI_PARAM_ERL,
189 ISCSI_PARAM_IFMARKER_EN, 189 ISCSI_PARAM_IFMARKER_EN,
190 ISCSI_PARAM_OFMARKER_EN, 190 ISCSI_PARAM_OFMARKER_EN,
191 ISCSI_PARAM_EXP_STATSN,
191 ISCSI_PARAM_TARGET_NAME, 192 ISCSI_PARAM_TARGET_NAME,
192 ISCSI_PARAM_TPGT, 193 ISCSI_PARAM_TPGT,
193 ISCSI_PARAM_PERSISTENT_ADDRESS, 194 ISCSI_PARAM_PERSISTENT_ADDRESS,
@@ -216,6 +217,7 @@ enum iscsi_param {
216#define ISCSI_ERL (1 << ISCSI_PARAM_ERL) 217#define ISCSI_ERL (1 << ISCSI_PARAM_ERL)
217#define ISCSI_IFMARKER_EN (1 << ISCSI_PARAM_IFMARKER_EN) 218#define ISCSI_IFMARKER_EN (1 << ISCSI_PARAM_IFMARKER_EN)
218#define ISCSI_OFMARKER_EN (1 << ISCSI_PARAM_OFMARKER_EN) 219#define ISCSI_OFMARKER_EN (1 << ISCSI_PARAM_OFMARKER_EN)
220#define ISCSI_EXP_STATSN (1 << ISCSI_PARAM_EXP_STATSN)
219#define ISCSI_TARGET_NAME (1 << ISCSI_PARAM_TARGET_NAME) 221#define ISCSI_TARGET_NAME (1 << ISCSI_PARAM_TARGET_NAME)
220#define ISCSI_TPGT (1 << ISCSI_PARAM_TPGT) 222#define ISCSI_TPGT (1 << ISCSI_PARAM_TPGT)
221#define ISCSI_PERSISTENT_ADDRESS (1 << ISCSI_PARAM_PERSISTENT_ADDRESS) 223#define ISCSI_PERSISTENT_ADDRESS (1 << ISCSI_PARAM_PERSISTENT_ADDRESS)