Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88488
b: refs/heads/master
c: 1e89a19
h: refs/heads/master
v: v3
  • Loading branch information
David Dillow authored and Roland Dreier committed Apr 17, 2008
1 parent bc28ba5 commit a88f1ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 826d801009fb3c82832f2d92149446cce354bf61
refs/heads/master: 1e89a1946cfd906d12eff437d2a76b3aa7f5e731
7 changes: 6 additions & 1 deletion trunk/drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int srp_max_iu_len;

module_param(srp_sg_tablesize, int, 0444);
MODULE_PARM_DESC(srp_sg_tablesize,
"Max number of gather/scatter entries per I/O (default is 12)");
"Max number of gather/scatter entries per I/O (default is 12, max 255)");

static int topspin_workarounds = 1;

Expand Down Expand Up @@ -2138,6 +2138,11 @@ static int __init srp_init_module(void)
{
int ret;

if (srp_sg_tablesize > 255) {
printk(KERN_WARNING PFX "Clamping srp_sg_tablesize to 255\n");
srp_sg_tablesize = 255;
}

ib_srp_transport_template =
srp_attach_transport(&ib_srp_transport_functions);
if (!ib_srp_transport_template)
Expand Down

0 comments on commit a88f1ee

Please sign in to comment.