diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-12-02 01:32:04 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 12:24:20 -0500 |
commit | 63c62f1cb980241513c82cacd5b9f878527c6647 (patch) | |
tree | 929f7609d410db8654ed1e262725ca2d3203f199 /include/scsi/iscsi_if.h | |
parent | b29f841378460c37e99a2398d0015d9bd7901a09 (diff) |
[SCSI] iscsi_tcp: prepare helpers for LLDs that can offload some operations
cxgb3i is unlike qla4xxx and bnx2i in that it does not offload entire
scsi commands or iscsi sequences. Instead it only offloads the transfer
of a ISCSI DATA_IN pdu's data, the digests and padding. This patch fixes up the
iscsi tcp recv path so that it exports its skb recv processing so
cxgb3i and other drivers can call them. All they have to do is pass
the function the skb with the hdr or data pdu header and this function
will do the rest.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/iscsi_if.h')
-rw-r--r-- | include/scsi/iscsi_if.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h index 0c9514de5df7..8e008c96e795 100644 --- a/include/scsi/iscsi_if.h +++ b/include/scsi/iscsi_if.h | |||
@@ -333,8 +333,9 @@ enum iscsi_host_param { | |||
333 | #define CAP_TEXT_NEGO 0x80 | 333 | #define CAP_TEXT_NEGO 0x80 |
334 | #define CAP_MARKERS 0x100 | 334 | #define CAP_MARKERS 0x100 |
335 | #define CAP_FW_DB 0x200 | 335 | #define CAP_FW_DB 0x200 |
336 | #define CAP_SENDTARGETS_OFFLOAD 0x400 | 336 | #define CAP_SENDTARGETS_OFFLOAD 0x400 /* offload discovery process */ |
337 | #define CAP_DATA_PATH_OFFLOAD 0x800 | 337 | #define CAP_DATA_PATH_OFFLOAD 0x800 /* offload entire IO path */ |
338 | #define CAP_DIGEST_OFFLOAD 0x1000 /* offload hdr and data digests */ | ||
338 | 339 | ||
339 | /* | 340 | /* |
340 | * These flags describes reason of stop_conn() call | 341 | * These flags describes reason of stop_conn() call |