diff options
author | Yi Zou <yi.zou@intel.com> | 2011-06-20 19:59:05 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 17:28:39 -0400 |
commit | 33dc362b7f155a584688bcab2facdd4d21232001 (patch) | |
tree | e8bcb27f2915d714f4ce60ee6740809686900672 /drivers/target | |
parent | 480584818a4bb3655d8d0d875ed60b427fc61cc5 (diff) |
[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>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index b2a106729d49..b9cea59d43b4 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c | |||
@@ -266,8 +266,9 @@ int ft_write_pending(struct se_cmd *se_cmd) | |||
266 | cmd->sg_cnt = | 266 | cmd->sg_cnt = |
267 | T_TASK(se_cmd)->t_tasks_sg_chained_no; | 267 | T_TASK(se_cmd)->t_tasks_sg_chained_no; |
268 | } | 268 | } |
269 | if (cmd->sg && lport->tt.ddp_setup(lport, ep->xid, | 269 | if (cmd->sg && lport->tt.ddp_target(lport, ep->xid, |
270 | cmd->sg, cmd->sg_cnt)) | 270 | cmd->sg, |
271 | cmd->sg_cnt)) | ||
271 | cmd->was_ddp_setup = 1; | 272 | cmd->was_ddp_setup = 1; |
272 | } | 273 | } |
273 | } | 274 | } |