]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libiscsi: allow drivers to modify the itt sent to the target
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 2 Dec 2008 06:32:13 +0000 (00:32 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:22 +0000 (11:24 -0600)
commit40c4f38d59c202886c865d66435518bb22c7ab65
treefc8e01280968470f2d3d122614508fe5e402e0a2
parentafebd42e96a1fa950e07140f9457af71a5c5f18e
[SCSI] libiscsi: allow drivers to modify the itt sent to the target

bnx2i and cxgb3i need to encode LLD info in the itt so that
the firmware/hardware can process the pdu. This patch allows
the LLDs to encode info in the task->hdr->itt that they
setup in the alloc_pdu callout (any resources that are allocated
can be freed with the pdu in the cleanup_task callout). If
the LLD encodes info in the itt they should implement a
parse_pdu_itt callout. If parse_pdu_itt is not implemented
libiscsi will do the right thing for the LLD.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h
include/scsi/scsi_transport_iscsi.h