diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-05-30 13:57:17 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2007-06-01 12:59:26 -0400 |
commit | 218432c68085d6c2b04df57daaf105d2ffa2aa61 (patch) | |
tree | cdc4646cc1d20f16bea893fb366f24c3ea50f0af /drivers/scsi/iscsi_tcp.h | |
parent | b2c6416736b847b91950bd43cc5153e11a1f83ee (diff) |
[SCSI] iscsi tcp: fix iscsi xmit state machine
If iscsi_tcp partially sends a header, it would recalculate the
header size and readd the size of the digest (if header digests
are used).This would cause us to send sizeof(digest) extra bytes
when we sent the rest of the header.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
-rw-r--r-- | drivers/scsi/iscsi_tcp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h index f909edbf61ee..b039160ebafd 100644 --- a/drivers/scsi/iscsi_tcp.h +++ b/drivers/scsi/iscsi_tcp.h | |||
@@ -32,8 +32,8 @@ | |||
32 | 32 | ||
33 | /* xmit state machine */ | 33 | /* xmit state machine */ |
34 | #define XMSTATE_IDLE 0x0 | 34 | #define XMSTATE_IDLE 0x0 |
35 | #define XMSTATE_R_HDR 0x1 | 35 | #define XMSTATE_CMD_HDR_INIT 0x1 |
36 | #define XMSTATE_W_HDR 0x2 | 36 | #define XMSTATE_CMD_HDR_XMIT 0x2 |
37 | #define XMSTATE_IMM_HDR 0x4 | 37 | #define XMSTATE_IMM_HDR 0x4 |
38 | #define XMSTATE_IMM_DATA 0x8 | 38 | #define XMSTATE_IMM_DATA 0x8 |
39 | #define XMSTATE_UNS_INIT 0x10 | 39 | #define XMSTATE_UNS_INIT 0x10 |
@@ -44,6 +44,8 @@ | |||
44 | #define XMSTATE_W_PAD 0x200 | 44 | #define XMSTATE_W_PAD 0x200 |
45 | #define XMSTATE_W_RESEND_PAD 0x400 | 45 | #define XMSTATE_W_RESEND_PAD 0x400 |
46 | #define XMSTATE_W_RESEND_DATA_DIGEST 0x800 | 46 | #define XMSTATE_W_RESEND_DATA_DIGEST 0x800 |
47 | #define XMSTATE_IMM_HDR_INIT 0x1000 | ||
48 | #define XMSTATE_SOL_HDR_INIT 0x2000 | ||
47 | 49 | ||
48 | #define ISCSI_PAD_LEN 4 | 50 | #define ISCSI_PAD_LEN 4 |
49 | #define ISCSI_SG_TABLESIZE SG_ALL | 51 | #define ISCSI_SG_TABLESIZE SG_ALL |