]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] libfc: add support of large receive offload by ddp in fc_fcp
authorYi Zou <yi.zou@intel.com>
Fri, 27 Feb 2009 22:07:21 +0000 (14:07 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 13 Mar 2009 20:15:15 +0000 (15:15 -0500)
commitb277d2aa9a4d969002c4157bf77b76b9ad9ca04a
tree1054ff4ab2d03eaaa527919380ed6334233f632b
parent39ca9a065a5a0a6f2f0cd648090a979ba3f4f018
[SCSI] libfc: add support of large receive offload by ddp in fc_fcp

When LLD supports direct data placement (ddp) for large receive of an scsi
i/o coming into fc_fcp, we call into libfc_function_template's ddp_setup()
to prepare for a ddp of large receive for this read I/O. When I/O is complete,
we call the corresponding ddp_done() to get the length of data ddped as well
as to let LLD do clean up.

fc_fcp_ddp_setup()/fc_fcp_ddp_done() are added to setup and complete a ddped
read I/O described by the given fc_fcp_pkt. They would call into corresponding
ddp_setup/ddp_done implemented by the fcoe layer. Eventually, fcoe layer calls
into LLD's ddp_setup/ddp_done provided through net_device

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libfc/fc_exch.c
drivers/scsi/libfc/fc_fcp.c
include/scsi/fc_frame.h
include/scsi/libfc.h
include/scsi/libfcoe.h