diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mid.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mid.c | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index 642cd79bd03..9a82c34f620 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c | |||
@@ -482,7 +482,7 @@ qla25xx_delete_req_que(struct scsi_qla_host *vha, struct req_que *req) | |||
482 | return ret; | 482 | return ret; |
483 | } | 483 | } |
484 | 484 | ||
485 | int | 485 | static int |
486 | qla25xx_delete_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) | 486 | qla25xx_delete_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) |
487 | { | 487 | { |
488 | int ret = -1; | 488 | int ret = -1; |
@@ -497,23 +497,6 @@ qla25xx_delete_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) | |||
497 | return ret; | 497 | return ret; |
498 | } | 498 | } |
499 | 499 | ||
500 | int qla25xx_update_req_que(struct scsi_qla_host *vha, uint8_t que, uint8_t qos) | ||
501 | { | ||
502 | int ret = 0; | ||
503 | struct qla_hw_data *ha = vha->hw; | ||
504 | struct req_que *req = ha->req_q_map[que]; | ||
505 | |||
506 | req->options |= BIT_3; | ||
507 | req->qos = qos; | ||
508 | ret = qla25xx_init_req_que(vha, req); | ||
509 | if (ret != QLA_SUCCESS) | ||
510 | DEBUG2_17(printk(KERN_WARNING "%s failed\n", __func__)); | ||
511 | /* restore options bit */ | ||
512 | req->options &= ~BIT_3; | ||
513 | return ret; | ||
514 | } | ||
515 | |||
516 | |||
517 | /* Delete all queues for a given vhost */ | 500 | /* Delete all queues for a given vhost */ |
518 | int | 501 | int |
519 | qla25xx_delete_queues(struct scsi_qla_host *vha) | 502 | qla25xx_delete_queues(struct scsi_qla_host *vha) |
@@ -740,35 +723,3 @@ que_failed: | |||
740 | failed: | 723 | failed: |
741 | return 0; | 724 | return 0; |
742 | } | 725 | } |
743 | |||
744 | int | ||
745 | qla25xx_create_queues(struct scsi_qla_host *vha, uint8_t qos) | ||
746 | { | ||
747 | uint16_t options = 0; | ||
748 | uint8_t ret = 0; | ||
749 | struct qla_hw_data *ha = vha->hw; | ||
750 | struct rsp_que *rsp; | ||
751 | |||
752 | options |= BIT_1; | ||
753 | ret = qla25xx_create_rsp_que(ha, options, vha->vp_idx, 0, -1); | ||
754 | if (!ret) { | ||
755 | qla_printk(KERN_WARNING, ha, "Response Que create failed\n"); | ||
756 | return ret; | ||
757 | } else | ||
758 | qla_printk(KERN_INFO, ha, "Response Que:%d created.\n", ret); | ||
759 | rsp = ha->rsp_q_map[ret]; | ||
760 | |||
761 | options = 0; | ||
762 | if (qos & BIT_7) | ||
763 | options |= BIT_8; | ||
764 | ret = qla25xx_create_req_que(ha, options, vha->vp_idx, 0, ret, | ||
765 | qos & ~BIT_7); | ||
766 | if (ret) { | ||
767 | vha->req = ha->req_q_map[ret]; | ||
768 | qla_printk(KERN_INFO, ha, "Request Que:%d created.\n", ret); | ||
769 | } else | ||
770 | qla_printk(KERN_WARNING, ha, "Request Que create failed\n"); | ||
771 | rsp->req = ha->req_q_map[ret]; | ||
772 | |||
773 | return ret; | ||
774 | } | ||