[openib-general] [CM] what happen if the path in the REQ packet (primary or alternate) is not reversible?

Sean Hefty mshefty at ichips.intel.com
Tue Nov 28 09:41:25 PST 2006


Michael S. Tsirkin wrote:
> diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
> index 4b09147..85111b4 100644
> --- a/drivers/infiniband/ulp/srp/ib_srp.c
> +++ b/drivers/infiniband/ulp/srp/ib_srp.c
> @@ -276,7 +276,8 @@ static int srp_lookup_path(struct srp_ta
>  						   IB_SA_PATH_REC_DGID		|
>  						   IB_SA_PATH_REC_SGID		|
>  						   IB_SA_PATH_REC_NUMB_PATH	|
> -						   IB_SA_PATH_REC_PKEY,
> +						   IB_SA_PATH_REC_PKEY          |
> +						   IB_SA_PATH_REC_REVERSIBLE,
>  						   SRP_PATH_REC_TIMEOUT_MS,
>  						   GFP_KERNEL,
>  						   srp_path_rec_completion,
> 

The reversible bit needs to be set as well.

- Sean




More information about the general mailing list