Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263802
b: refs/heads/master
c: 51cc9a8
h: refs/heads/master
v: v3
  • Loading branch information
Saurav Kashyap authored and James Bottomley committed Aug 27, 2011
1 parent 54f674b commit ede971d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58b48576966ed0afd3f63ef17480ec12748a7119
refs/heads/master: 51cc9a8e5f610a0d0881b45410c37890e02a2f76
20 changes: 10 additions & 10 deletions trunk/drivers/scsi/qla2xxx/qla_nx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2839,6 +2839,16 @@ qla82xx_start_scsi(srb_t *sp)
int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun);
host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun));

/* build FCP_CMND IU */
memset(ctx->fcp_cmnd, 0, sizeof(struct fcp_cmnd));
int_to_scsilun(sp->cmd->device->lun, &ctx->fcp_cmnd->lun);
ctx->fcp_cmnd->additional_cdb_len = additional_cdb_len;

if (cmd->sc_data_direction == DMA_TO_DEVICE)
ctx->fcp_cmnd->additional_cdb_len |= 1;
else if (cmd->sc_data_direction == DMA_FROM_DEVICE)
ctx->fcp_cmnd->additional_cdb_len |= 2;

/*
* Update tagged queuing modifier -- default is TSK_SIMPLE (0).
*/
Expand All @@ -2855,16 +2865,6 @@ qla82xx_start_scsi(srb_t *sp)
}
}

/* build FCP_CMND IU */
memset(ctx->fcp_cmnd, 0, sizeof(struct fcp_cmnd));
int_to_scsilun(sp->cmd->device->lun, &ctx->fcp_cmnd->lun);
ctx->fcp_cmnd->additional_cdb_len = additional_cdb_len;

if (cmd->sc_data_direction == DMA_TO_DEVICE)
ctx->fcp_cmnd->additional_cdb_len |= 1;
else if (cmd->sc_data_direction == DMA_FROM_DEVICE)
ctx->fcp_cmnd->additional_cdb_len |= 2;

memcpy(ctx->fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len);

fcp_dl = (uint32_t *)(ctx->fcp_cmnd->cdb + 16 +
Expand Down

0 comments on commit ede971d

Please sign in to comment.