]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] iscsi_tcp: prepare helpers for LLDs that can offload some operations
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 2 Dec 2008 06:32:04 +0000 (00:32 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:20 +0000 (11:24 -0600)
commite04f873fcbaaf2dafc265998ae7f2eb09a2a98ca
tree929f7609d410db8654ed1e262725ca2d3203f199
parent88be7cecdfab04eb19312ebcbf47ab7b2f8f31e5
[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>
drivers/scsi/iscsi_tcp.c
include/scsi/iscsi_if.h