[openib-general] [PATCH] IB/SRP - increase supported CDB size

Roland Dreier rdreier at cisco.com
Thu Nov 16 09:59:32 PST 2006


Definitely makes sense.  I queued the following version for 2.6.20,
which gets the max CDB size directly from struct srp_cmd.  Does this
look OK to you?

Thanks,
 Roland

diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 4b09147..01776c9 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1716,7 +1716,8 @@ static ssize_t srp_create_target(struct
 	if (!target_host)
 		return -ENOMEM;
 
-	target_host->max_lun = SRP_MAX_LUN;
+	target_host->max_lun     = SRP_MAX_LUN;
+	target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb;
 
 	target = host_to_target(target_host);
 




More information about the general mailing list