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

Arne Redlich arne.redlich at xiranet.com
Fri Nov 17 00:28:38 PST 2006


Roland Dreier <rdreier at cisco.com> writes:

> 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?

Looks good to me. I guess there's no way to sneak it into 2.6.19
anymore, right? ;)

Thanks,
Arne

> 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