aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-12-02 01:32:07 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-12-29 12:24:21 -0500
commite5a7efeffdcc3062ade5208d16c278d8d484f82a (patch)
treead9433d07322ddc9b0c8e9c4a988c38e12cf4d8b /drivers/scsi/iscsi_tcp.h
parent0f9c7449ce050759d10424048b96d1bd0d59dcc1 (diff)
[SCSI] iscsi_tcp: convert to new alloc_hdr api
This converts iscsi_tcp to the new api and modifies how it handles r2ts. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
-rw-r--r--drivers/scsi/iscsi_tcp.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h
index 498d8ca39848..0ed47733c75f 100644
--- a/drivers/scsi/iscsi_tcp.h
+++ b/drivers/scsi/iscsi_tcp.h
@@ -98,25 +98,9 @@ struct iscsi_tcp_conn {
98 ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int); 98 ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int);
99}; 99};
100 100
101struct iscsi_data_task {
102 struct iscsi_data hdr; /* PDU */
103 char hdrext[ISCSI_DIGEST_SIZE];/* Header-Digest */
104};
105
106struct iscsi_r2t_info {
107 __be32 ttt; /* copied from R2T */
108 __be32 exp_statsn; /* copied from R2T */
109 uint32_t data_length; /* copied from R2T */
110 uint32_t data_offset; /* copied from R2T */
111 int sent; /* R2T sequence progress */
112 int data_count; /* DATA-Out payload progress */
113 int solicit_datasn;
114 struct iscsi_data_task dtask; /* Data-Out header buf */
115};
116
117struct iscsi_tcp_task { 101struct iscsi_tcp_task {
118 struct iscsi_hdr_buff { 102 struct iscsi_hdr_buff {
119 struct iscsi_cmd cmd_hdr; 103 struct iscsi_hdr hdrbuf;
120 char hdrextbuf[ISCSI_MAX_AHS_SIZE + 104 char hdrextbuf[ISCSI_MAX_AHS_SIZE +
121 ISCSI_DIGEST_SIZE]; 105 ISCSI_DIGEST_SIZE];
122 } hdr; 106 } hdr;
@@ -124,10 +108,9 @@ struct iscsi_tcp_task {
124 int sent; 108 int sent;
125 uint32_t exp_datasn; /* expected target's R2TSN/DataSN */ 109 uint32_t exp_datasn; /* expected target's R2TSN/DataSN */
126 int data_offset; 110 int data_offset;
127 struct iscsi_r2t_info *r2t; /* in progress R2T */ 111 struct iscsi_r2t_info *r2t; /* in progress solict R2T */
128 struct iscsi_pool r2tpool; 112 struct iscsi_pool r2tpool;
129 struct kfifo *r2tqueue; 113 struct kfifo *r2tqueue;
130 struct iscsi_data_task unsol_dtask; /* Data-Out header buf */
131}; 114};
132 115
133#endif /* ISCSI_H */ 116#endif /* ISCSI_H */