diff options
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 5 | ||||
-rw-r--r-- | include/scsi/libfc.h | 8 |
2 files changed, 11 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 | } |
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index a3cbda4ddb5c..7d96829b0c00 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -511,6 +511,14 @@ struct libfc_function_template { | |||
511 | */ | 511 | */ |
512 | int (*ddp_done)(struct fc_lport *, u16); | 512 | int (*ddp_done)(struct fc_lport *, u16); |
513 | /* | 513 | /* |
514 | * Sets up the DDP context for a given exchange id on the given | ||
515 | * scatterlist if LLD supports DDP for FCoE target. | ||
516 | * | ||
517 | * STATUS: OPTIONAL | ||
518 | */ | ||
519 | int (*ddp_target)(struct fc_lport *, u16, struct scatterlist *, | ||
520 | unsigned int); | ||
521 | /* | ||
514 | * Allow LLD to fill its own Link Error Status Block | 522 | * Allow LLD to fill its own Link Error Status Block |
515 | * | 523 | * |
516 | * STATUS: OPTIONAL | 524 | * STATUS: OPTIONAL |