[Openib-windows] Create AV with GRH from user space
Yossi Leybovich
sleybo at mellanox.co.il
Thu Sep 22 03:04:09 PDT 2005
Fab
Attached patch that cached the hca_attr after the first query.
We still need to figure if the cache of CA attr in UL is good idea , but
till then this patch unable use to send GRH from UL.
(I also add the case to the alts test so we can cover this flow)
10x
Yossi
Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)
Index: hw/mt23108/user/mlnx_ual_ca.c
===================================================================
--- hw/mt23108/user/mlnx_ual_ca.c (revision 435)
+++ hw/mt23108/user/mlnx_ual_ca.c (working copy)
@@ -201,6 +201,7 @@
byte_count && !h_uvp_ca->p_hca_attr )
{
h_uvp_ca->p_hca_attr = p_umv_buf->p_inout_buf;
+ cl_memcpy(h_uvp_ca->p_hca_attr, p_ca_attr,byte_count);
}
else if (p_umv_buf->p_inout_buf)
{
Index: tests/alts/createdestroyav.c
===================================================================
--- tests/alts/createdestroyav.c (revision 435)
+++ tests/alts/createdestroyav.c (working copy)
@@ -219,7 +219,12 @@
alts_av_attr.sl = 0;
alts_av_attr.static_rate = IB_PATH_RECORD_RATE_10_GBS;
alts_av_attr.path_bits = 0;
- alts_av_attr.grh_valid = FALSE;
+ alts_av_attr.grh_valid = TRUE;
+
+ alts_av_attr.grh.dest_gid.unicast.interface_id=
ca_guid_array[0];
+ alts_av_attr.grh.src_gid.unicast.interface_id =
ca_guid_array[0];
+ alts_av_attr.grh.hop_limit = 0;
+ alts_av_attr.grh.ver_class_flow = 0;
/*
* step 6: Create a PD
*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20050922/9798adb7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grh_av.patch
Type: application/octet-stream
Size: 1091 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20050922/9798adb7/attachment.obj>
More information about the ofw
mailing list