diff options
Diffstat (limited to 'drivers/scsi/bnx2fc')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 3 | ||||
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_io.c | 18 |
2 files changed, 5 insertions, 16 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 72533c58c1f3..3c7db3e8aa76 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c | |||
@@ -2791,12 +2791,13 @@ static struct scsi_host_template bnx2fc_shost_template = { | |||
2791 | .eh_host_reset_handler = fc_eh_host_reset, | 2791 | .eh_host_reset_handler = fc_eh_host_reset, |
2792 | .slave_alloc = fc_slave_alloc, | 2792 | .slave_alloc = fc_slave_alloc, |
2793 | .change_queue_depth = fc_change_queue_depth, | 2793 | .change_queue_depth = fc_change_queue_depth, |
2794 | .change_queue_type = fc_change_queue_type, | 2794 | .change_queue_type = scsi_change_queue_type, |
2795 | .this_id = -1, | 2795 | .this_id = -1, |
2796 | .cmd_per_lun = 3, | 2796 | .cmd_per_lun = 3, |
2797 | .use_clustering = ENABLE_CLUSTERING, | 2797 | .use_clustering = ENABLE_CLUSTERING, |
2798 | .sg_tablesize = BNX2FC_MAX_BDS_PER_CMD, | 2798 | .sg_tablesize = BNX2FC_MAX_BDS_PER_CMD, |
2799 | .max_sectors = 1024, | 2799 | .max_sectors = 1024, |
2800 | .use_blk_tags = 1, | ||
2800 | }; | 2801 | }; |
2801 | 2802 | ||
2802 | static struct libfc_function_template bnx2fc_libfc_fcn_templ = { | 2803 | static struct libfc_function_template bnx2fc_libfc_fcn_templ = { |
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index 5b99844ef6bf..4b56858c1df2 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c | |||
@@ -1725,7 +1725,6 @@ void bnx2fc_build_fcp_cmnd(struct bnx2fc_cmd *io_req, | |||
1725 | struct fcp_cmnd *fcp_cmnd) | 1725 | struct fcp_cmnd *fcp_cmnd) |
1726 | { | 1726 | { |
1727 | struct scsi_cmnd *sc_cmd = io_req->sc_cmd; | 1727 | struct scsi_cmnd *sc_cmd = io_req->sc_cmd; |
1728 | char tag[2]; | ||
1729 | 1728 | ||
1730 | memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); | 1729 | memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); |
1731 | 1730 | ||
@@ -1739,21 +1738,10 @@ void bnx2fc_build_fcp_cmnd(struct bnx2fc_cmd *io_req, | |||
1739 | fcp_cmnd->fc_tm_flags = io_req->mp_req.tm_flags; | 1738 | fcp_cmnd->fc_tm_flags = io_req->mp_req.tm_flags; |
1740 | fcp_cmnd->fc_flags = io_req->io_req_flags; | 1739 | fcp_cmnd->fc_flags = io_req->io_req_flags; |
1741 | 1740 | ||
1742 | if (scsi_populate_tag_msg(sc_cmd, tag)) { | 1741 | if (sc_cmd->flags & SCMD_TAGGED) |
1743 | switch (tag[0]) { | 1742 | fcp_cmnd->fc_pri_ta = FCP_PTA_SIMPLE; |
1744 | case HEAD_OF_QUEUE_TAG: | 1743 | else |
1745 | fcp_cmnd->fc_pri_ta = FCP_PTA_HEADQ; | ||
1746 | break; | ||
1747 | case ORDERED_QUEUE_TAG: | ||
1748 | fcp_cmnd->fc_pri_ta = FCP_PTA_ORDERED; | ||
1749 | break; | ||
1750 | default: | ||
1751 | fcp_cmnd->fc_pri_ta = FCP_PTA_SIMPLE; | ||
1752 | break; | ||
1753 | } | ||
1754 | } else { | ||
1755 | fcp_cmnd->fc_pri_ta = 0; | 1744 | fcp_cmnd->fc_pri_ta = 0; |
1756 | } | ||
1757 | } | 1745 | } |
1758 | 1746 | ||
1759 | static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req, | 1747 | static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req, |