[openib-general] gen2_basic patch 5/10: select a valid port number
Hal Rosenstock
halr at voltaire.com
Tue Sep 19 18:05:53 PDT 2006
On Tue, 2006-09-19 at 20:28, Robert Walsh wrote:
> gen2_basic - select a valid port number
>
> Port numbers start at 1, not 0.
True for CA and routers but not switches.
> Signed-off by: Robert Walsh <robert.walsh at qlogic.com>
>
> diff -rNu a/gen2_basic/test_poll_post.c b/gen2_basic/test_poll_post.c
> --- a/gen2_basic/test_poll_post.c 2006-09-13 19:09:47.410808000 -0700
> +++ b/gen2_basic/test_poll_post.c 2006-08-14 14:17:03.705821000 -0700
> @@ -283,7 +283,7 @@
> .dlid = VL_range(rand_gen, 1, 0xffff),
> .sl = VL_range(rand_gen, 0, 15),
> .src_path_bits = VL_range(rand_gen, 0, 0x8f),
> - .port_num = VL_random(rand_gen, device_attr.phys_port_cnt),
> + .port_num = VL_range(rand_gen, 1, device_attr.phys_port_cnt),
> .static_rate = get_static_rate(1, rand_gen),
> .grh = {
> .traffic_class = VL_range(rand_gen, 1, 0xff),
>
> ______________________________________________________________________
>
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
More information about the general
mailing list