Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213330
b: refs/heads/master
c: 58548cb
h: refs/heads/master
v: v3
  • Loading branch information
Giridhar Malavali authored and James Bottomley committed Sep 5, 2010
1 parent 4c5b59d commit 81cd37a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 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: 3fadb80b0f39b193caafeed615a219aae57279fe
refs/heads/master: 58548cb51a824276c34a3227a4917d2e2ded0daa
2 changes: 2 additions & 0 deletions trunk/drivers/scsi/qla2xxx/qla_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -2989,6 +2989,8 @@ typedef struct scsi_qla_host {

#define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr)

#define QLA_SG_ALL 1024

enum nexus_wait_type {
WAIT_HOST = 0,
WAIT_TARGET,
Expand Down
12 changes: 10 additions & 2 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -2136,8 +2136,16 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
else
base_vha->mgmt_svr_loop_id = MANAGEMENT_SERVER +
base_vha->vp_idx;
if (IS_QLA2100(ha))
host->sg_tablesize = 32;

/* Set the SG table size based on ISP type */
if (!IS_FWI2_CAPABLE(ha)) {
if (IS_QLA2100(ha))
host->sg_tablesize = 32;
} else {
if (!IS_QLA82XX(ha))
host->sg_tablesize = QLA_SG_ALL;
}

host->max_id = max_id;
host->this_id = 255;
host->cmd_per_lun = 3;
Expand Down

0 comments on commit 81cd37a

Please sign in to comment.