[openib-general] gen2_basic patch 7/10: choose illegal max_qp_init_rd_atom values correctly

Dotan Barak dotanb at dev.mellanox.co.il
Wed Sep 20 23:51:11 PDT 2006


Robert Walsh wrote:
> gen2_basic - choose illegal max_qp_init_rd_atom values correctly
>
> Signed-off by: Robert Walsh <robert.walsh at qlogic.com>
>
> diff -rNu a/gen2_basic/test_qp.c b/gen2_basic/test_qp.c
> --- a/gen2_basic/test_qp.c	2006-09-13 19:09:47.419791000 -0700
> +++ b/gen2_basic/test_qp.c	2006-08-14 14:16:57.911621000 -0700
> @@ -369,7 +369,7 @@
>  	if (legal)
>  		return VL_range(rand_gen, 0, attr->max_qp_init_rd_atom);
>  	else
> -		return VL_range(rand_gen, attr->max_qp_init_rd_atom, 0xFF);
> +		return VL_range(rand_gen, attr->max_qp_init_rd_atom + 1, 0xFF);
>  }
>  
>  uint8_t get_max_dest_rd_atomic(
> @@ -380,7 +380,7 @@
>  	if (legal)
>  		return VL_range(rand_gen, 0, attr->max_qp_rd_atom);
>  	else
> -		return VL_range(rand_gen, attr->max_qp_rd_atom, 0xFF);
> +		return VL_range(rand_gen, attr->max_qp_rd_atom + 1, 0xFF);
>  }
>  
>  uint8_t get_min_rnr_timer(
>   


committed.

thanks
Dotan




More information about the general mailing list