[SCSI] libfc, tcm_fc: add ddp_targ() to libfc function template to supprot FCoE DDP...
authorYi Zou <yi.zou@intel.com>
Mon, 20 Jun 2011 23:59:05 +0000 (16:59 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 21:28:39 +0000 (16:28 -0500)
commit33dc362b7f155a584688bcab2facdd4d21232001
treee8bcb27f2915d714f4ce60ee6740809686900672
parent480584818a4bb3655d8d0d875ed60b427fc61cc5
[SCSI] libfc, tcm_fc: add ddp_targ() to libfc function template to supprot FCoE DDP in target mode

The fcoe driver can implement ddp_targ() similarly to ddp_setup() when fcoe
stack works with existing target frame, e.g., tcm, where the ddp_targ() would
eventually point to the underlying hardware driver's implementation of
ndo_fcoe_ddp_targ() through net_device_ops. This new API sets up DDP context
for target appropriately by setting required bits for DDP context.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/target/tcm_fc/tfc_cmd.c
include/scsi/libfc.h