Boaz Harrosh
004d6530f8
[SCSI] iscsi_tcp, libiscsi: initial AHS Support
...
at libiscsi generic code
- currently code assumes a storage space of pdu header is allocated
at llds ctask and is pointed to by iscsi_cmd_task->hdr. Here I add
a hdr_max field pertaining to that storage, and an hdr_len that
accumulates the current use of the pdu-header.
- Add an iscsi_next_hdr() inline which returns the next free space
to write new Header at. Also iscsi_next_hdr() is used to retrieve
the address at which to write the header-digest.
- Add iscsi_add_hdr(length). What the user do is calls iscsi_next_hdr()
for address of the new header, than calls iscsi_add_hdr(length) with
the size of the new header. iscsi_add_hdr() will check if space is
available and update to the new size. length must be padded according
to standard.
- Add 2 padding inline helpers thanks to Olaf. Current patch does not
use them but Following patches will.
Also moved definition of ISCSI_PAD_LEN to iscsi_proto.h which had
PAD_WORD_LEN that was never used anywhere.
- Let iscsi_prep_scsi_cmd_pdu() signal an Error return since now it is
possible that it will fail.
- I was tired of yet again writing a "this is a digest" comment next to
sizeof(__u32) so I defined a new ISCSI_DIGEST_SIZE. Now I don't need
any comments. Changed all places that used sizeof(__u32) or "4" in
connection to a digest.
iscsi_tcp specific code
- At struct iscsi_tcp_cmd_task allocate maximum space allowed in
standard for all headers following the iscsi_cmd header. and mark
it so in iscsi_tcp_session_create()
- At iscsi_send_cmd_hdr() retrieve the correct headers size and
write header digest at iscsi_next_hdr().
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com >
Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com >
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu >
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com >
2008-01-11 18:28:23 -06:00
..
2008-01-11 18:28:07 -06:00
2007-10-23 16:37:29 -07:00
2006-06-30 19:25:36 +02:00
2008-01-11 18:28:04 -06:00
2007-10-29 07:41:33 -07:00
2007-10-31 15:21:35 +00:00
2007-04-01 10:10:04 -05:00
2008-01-11 18:22:45 -06:00
2008-01-11 18:22:41 -06:00
2008-01-11 18:22:50 -06:00
2008-01-11 18:22:44 -06:00
2008-01-11 18:22:34 -06:00
2008-01-11 18:22:46 -06:00
2007-10-19 23:10:43 +02:00
2008-01-11 18:27:56 -06:00
2008-01-11 18:22:30 -06:00
2008-01-11 18:22:42 -06:00
2007-07-21 08:57:40 -05:00
2007-10-22 21:19:53 +02:00
2007-01-06 09:18:00 -06:00
2007-07-14 19:12:43 -05:00
2007-06-17 16:15:56 -05:00
2005-04-16 15:20:36 -07:00
2007-10-16 11:24:32 +02:00
2007-06-17 16:09:29 -05:00
2008-01-11 18:22:35 -06:00
2006-09-12 17:12:31 -05:00
2008-01-11 18:22:35 -06:00
2006-09-12 17:12:31 -05:00
2007-10-12 14:41:00 -04:00
2007-10-12 14:54:13 -04:00
2008-01-11 18:22:34 -06:00
2007-08-04 09:11:06 -05:00
2008-01-11 18:22:35 -06:00
2005-11-09 15:44:09 -05:00
2007-10-16 11:24:32 +02:00
2007-10-18 08:40:42 -04:00
2006-10-05 15:10:12 +01:00
2008-01-11 18:22:39 -06:00
2007-11-25 12:19:26 +02:00
2007-05-04 17:59:05 -07:00
2008-01-11 18:22:38 -06:00
2005-09-15 08:59:36 -05:00
2007-02-09 16:23:17 +00:00
2007-02-09 16:23:17 +00:00
2007-10-16 11:24:32 +02:00
2007-02-07 18:32:29 -05:00
2007-10-12 14:41:00 -04:00
2007-05-06 09:33:11 -05:00
2008-01-11 18:22:40 -06:00
2007-02-09 16:23:17 +00:00
2007-02-09 16:23:17 +00:00
2007-10-19 23:10:43 +02:00
2007-02-09 16:23:17 +00:00
2006-09-26 11:35:32 -07:00
2007-12-18 16:04:08 -06:00
2007-12-10 19:43:54 -08:00
2007-11-25 12:19:26 +02:00
2005-11-09 15:44:09 -05:00
2007-03-20 11:27:03 -05:00
2008-01-11 18:22:34 -06:00
2007-10-16 11:24:32 +02:00
2007-12-10 19:43:55 -08:00
2007-07-31 10:51:25 -05:00
2007-02-09 16:23:17 +00:00
2008-01-11 18:22:35 -06:00
2007-10-22 21:19:53 +02:00
2007-10-19 11:53:42 -07:00
2005-04-16 15:20:36 -07:00
2007-11-25 12:19:26 +02:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2007-10-12 14:56:09 -04:00
2007-10-12 14:55:46 -04:00
2008-01-11 18:28:14 -06:00
2007-10-12 14:56:13 -04:00
2007-02-14 08:09:54 -08:00
2006-09-12 17:12:31 -05:00
2008-01-11 18:22:40 -06:00
2008-01-11 18:28:06 -06:00
2008-01-11 18:28:06 -06:00
2007-10-22 21:19:53 +02:00
2007-12-12 23:31:57 +01:00
2008-01-11 18:22:41 -06:00
2006-10-04 03:38:54 -04:00
2008-01-11 18:22:36 -06:00
2005-11-09 15:44:09 -05:00
2007-12-18 16:04:15 -06:00
2007-05-22 11:08:56 -05:00
2008-01-11 18:28:15 -06:00
2007-05-08 11:54:40 -05:00
2008-01-11 18:28:02 -06:00
2008-01-11 18:27:59 -06:00
2008-01-11 18:28:23 -06:00
2008-01-11 18:28:23 -06:00
2007-05-31 17:30:04 -04:00
2008-01-11 18:28:06 -06:00
2007-07-19 10:04:50 -07:00
2008-01-11 18:28:23 -06:00
2008-01-11 18:22:30 -06:00
2007-10-16 11:24:32 +02:00
2007-02-09 16:23:17 +00:00
2007-11-25 12:19:26 +02:00
2005-06-17 12:04:45 -05:00
2008-01-11 18:28:17 -06:00
2007-02-09 16:23:17 +00:00
2007-10-22 21:19:53 +02:00
2007-05-08 11:15:08 -05:00
2007-10-16 11:24:32 +02:00
2005-04-16 15:20:36 -07:00
2007-10-12 14:41:00 -04:00
2007-02-14 08:09:54 -08:00
2006-09-12 17:12:31 -05:00
2007-10-12 14:51:52 -04:00
2007-10-12 14:51:18 -04:00
2007-10-22 21:19:53 +02:00
2007-10-22 21:19:53 +02:00
2007-02-09 16:23:17 +00:00
2008-01-11 18:28:11 -06:00
2007-10-12 14:55:07 -04:00
2007-10-12 14:41:00 -04:00
2005-04-16 15:20:36 -07:00
2007-07-19 10:04:50 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-16 11:24:32 +02:00
2007-10-19 11:53:42 -07:00
2007-10-22 21:19:53 +02:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-27 14:31:06 -05:00
2007-10-12 14:50:55 -04:00
2007-11-25 12:19:26 +02:00
2005-11-09 15:44:09 -05:00
2008-01-11 18:22:41 -06:00
2006-10-04 03:38:54 -04:00
2007-10-23 09:13:14 +02:00
2005-05-20 12:53:13 -05:00
2005-05-20 12:53:13 -05:00
2008-01-09 15:06:07 -06:00
2007-10-23 12:35:35 -04:00
2007-10-22 21:19:53 +02:00
2006-10-25 15:11:55 -07:00
2007-10-16 11:24:32 +02:00
2006-10-17 19:28:51 -07:00
2008-01-11 18:22:36 -06:00
2007-10-12 14:52:38 -04:00
2006-10-04 13:27:26 -05:00
2005-04-16 15:20:36 -07:00
2008-01-11 18:22:38 -06:00
2005-04-16 15:20:36 -07:00
2008-01-11 18:22:44 -06:00
2008-01-11 18:22:45 -06:00
2008-01-11 18:22:50 -06:00
2007-07-14 19:28:10 -05:00
2008-01-11 18:22:50 -06:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2008-01-11 18:22:40 -06:00
2008-01-06 10:17:12 -08:00
2008-01-11 18:22:40 -06:00
2006-06-28 12:40:54 -04:00
2008-01-11 18:22:44 -06:00
2007-07-18 11:16:32 -05:00
2008-01-02 13:08:00 -06:00
2008-01-11 18:22:30 -06:00
2008-01-11 18:22:50 -06:00
2007-10-12 14:37:50 -04:00
2006-05-20 00:39:08 -04:00
2007-10-12 14:46:58 -04:00
2008-01-11 18:22:40 -06:00
2008-01-11 18:28:19 -06:00
2008-01-11 18:22:40 -06:00
2007-09-22 08:52:12 -05:00
2007-10-12 14:38:09 -04:00
2008-01-11 18:22:45 -06:00
2006-06-10 16:24:40 -05:00
2006-10-11 13:44:25 -05:00
2008-01-11 18:22:45 -06:00
2006-08-19 13:39:11 -07:00
2008-01-11 18:22:40 -06:00
2008-01-11 18:22:50 -06:00
2007-10-29 09:18:03 +01:00
2008-01-11 18:28:09 -06:00
2007-07-22 11:36:49 -07:00
2007-07-14 19:12:15 -05:00
2007-02-14 08:09:54 -08:00
2006-12-13 09:05:58 -08:00
2008-01-11 18:22:50 -06:00
2008-01-11 18:22:30 -06:00
2005-04-16 15:20:36 -07:00
2007-12-18 16:04:13 -06:00
2007-07-31 10:44:01 -05:00
2007-10-16 11:24:32 +02:00
2008-01-11 18:22:39 -06:00
2007-11-25 12:19:26 +02:00
2007-11-25 12:19:26 +02:00
2006-12-09 09:41:18 -08:00
2007-10-24 08:55:40 +02:00
2007-05-31 17:30:04 -04:00
2008-01-11 18:28:12 -06:00
2005-11-09 15:44:09 -05:00
2007-11-25 12:19:26 +02:00
2006-11-15 16:43:50 -06:00
2007-10-22 21:19:53 +02:00
2007-07-14 18:56:33 -05:00
2007-10-16 11:24:44 +02:00
2007-10-22 21:19:53 +02:00
2006-09-07 12:39:34 -05:00
2008-01-11 18:22:35 -06:00
2007-10-19 23:22:55 +02:00
2008-01-11 18:22:39 -06:00
2006-07-02 13:58:53 -07:00
2007-11-29 09:24:52 -08:00