diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-11-11 17:06:01 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-11-11 17:06:01 -0500 |
commit | 5f068992a1bccda5574b4f6d33458ef806686d7f (patch) | |
tree | a5f8266c59f39f0a1f3dc3d71a00da7276ac1a80 /drivers | |
parent | 78b9c0f91cf908616b8f9f356e1d1220e727ea88 (diff) |
[IB] srp: increase max_luns
Increase SRP max_luns to 512 to match the kernel's default, since SRP
storage targets can have lots of LUNs and the SRP initiator itself
doesn't have any particular limit.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 321a3a10e69b..a3645303cb99 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
@@ -1417,6 +1417,8 @@ static ssize_t srp_create_target(struct class_device *class_dev, | |||
1417 | if (!target_host) | 1417 | if (!target_host) |
1418 | return -ENOMEM; | 1418 | return -ENOMEM; |
1419 | 1419 | ||
1420 | target_host->max_lun = SRP_MAX_LUN; | ||
1421 | |||
1420 | target = host_to_target(target_host); | 1422 | target = host_to_target(target_host); |
1421 | memset(target, 0, sizeof *target); | 1423 | memset(target, 0, sizeof *target); |
1422 | 1424 | ||
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index 4fec28a71367..b564f18caf78 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h | |||
@@ -54,6 +54,7 @@ enum { | |||
54 | SRP_PORT_REDIRECT = 1, | 54 | SRP_PORT_REDIRECT = 1, |
55 | SRP_DLID_REDIRECT = 2, | 55 | SRP_DLID_REDIRECT = 2, |
56 | 56 | ||
57 | SRP_MAX_LUN = 512, | ||
57 | SRP_MAX_IU_LEN = 256, | 58 | SRP_MAX_IU_LEN = 256, |
58 | 59 | ||
59 | SRP_RQ_SHIFT = 6, | 60 | SRP_RQ_SHIFT = 6, |