diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2011-06-24 23:29:07 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 18:28:17 -0400 |
commit | 61e62e21afe469854e04546ea10b7a6f4cfd1142 (patch) | |
tree | d475caae7c70854788f0950d69a7bae1798794a7 /drivers/scsi/bfa/bfad_im.c | |
parent | 3350d98d6d072fc4ac3622e61dc3dc351ef01dc5 (diff) |
[SCSI] bfa: Driver and BSG enhancements.
- Added a new module parameter max_xfer_size to
set the max_sectors in the scsi_host template.
- Added logic to handle request_irq() failure so
that msix vector resource is de-allocated immediately
when failure happens.
- BSG enhancements to collect vHBA releated info and port log.
- Removed the workaround of incrementing the module refcnt on bsg request.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfad_im.c')
-rw-r--r-- | drivers/scsi/bfa/bfad_im.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfad_im.c b/drivers/scsi/bfa/bfad_im.c index 30ca26db7846..f2bf81265ae5 100644 --- a/drivers/scsi/bfa/bfad_im.c +++ b/drivers/scsi/bfa/bfad_im.c | |||
@@ -700,6 +700,9 @@ bfad_scsi_host_alloc(struct bfad_im_port_s *im_port, struct bfad_s *bfad) | |||
700 | else | 700 | else |
701 | sht = &bfad_im_vport_template; | 701 | sht = &bfad_im_vport_template; |
702 | 702 | ||
703 | if (max_xfer_size != BFAD_MAX_SECTORS >> 1) | ||
704 | sht->max_sectors = max_xfer_size << 1; | ||
705 | |||
703 | sht->sg_tablesize = bfad->cfg_data.io_max_sge; | 706 | sht->sg_tablesize = bfad->cfg_data.io_max_sge; |
704 | 707 | ||
705 | return scsi_host_alloc(sht, sizeof(unsigned long)); | 708 | return scsi_host_alloc(sht, sizeof(unsigned long)); |
@@ -777,7 +780,7 @@ struct scsi_host_template bfad_im_scsi_host_template = { | |||
777 | .cmd_per_lun = 3, | 780 | .cmd_per_lun = 3, |
778 | .use_clustering = ENABLE_CLUSTERING, | 781 | .use_clustering = ENABLE_CLUSTERING, |
779 | .shost_attrs = bfad_im_host_attrs, | 782 | .shost_attrs = bfad_im_host_attrs, |
780 | .max_sectors = 0xFFFF, | 783 | .max_sectors = BFAD_MAX_SECTORS, |
781 | .vendor_id = BFA_PCI_VENDOR_ID_BROCADE, | 784 | .vendor_id = BFA_PCI_VENDOR_ID_BROCADE, |
782 | }; | 785 | }; |
783 | 786 | ||
@@ -799,7 +802,7 @@ struct scsi_host_template bfad_im_vport_template = { | |||
799 | .cmd_per_lun = 3, | 802 | .cmd_per_lun = 3, |
800 | .use_clustering = ENABLE_CLUSTERING, | 803 | .use_clustering = ENABLE_CLUSTERING, |
801 | .shost_attrs = bfad_im_vport_attrs, | 804 | .shost_attrs = bfad_im_vport_attrs, |
802 | .max_sectors = 0xFFFF, | 805 | .max_sectors = BFAD_MAX_SECTORS, |
803 | }; | 806 | }; |
804 | 807 | ||
805 | bfa_status_t | 808 | bfa_status_t |