[Openib-windows] [PATCH] MTHCA: Allow user-mode to work without a UVP

Fab Tillier ftillier at silverstorm.com
Sun Apr 2 13:27:05 PDT 2006


Hi Leo,

This patch allows user-mode clients to work without the kernel bypass provider.
This is useful when trying to isolate user-mode issues, as well as for cases
where the UVP might not load (either missing or corrupt).

- Fab

Index: hw/mthca/kernel/mthca_provider.c
===================================================================
--- hw/mthca/kernel/mthca_provider.c	(revision 270)
+++ hw/mthca/kernel/mthca_provider.c	(working copy)
@@ -433,7 +433,7 @@
 		goto err_pd_alloc;
 	}
 
-	if (p_umv_buf) {
+	if (p_umv_buf && p_umv_buf->command) {
 		resp.pd_handle = (u64)(UINT_PTR)pd;
 		resp.pdn = pd->pd_num;
 		if (ib_copy_to_umv_buf(p_umv_buf, &resp, sizeof(struct
ibv_alloc_pd_resp))) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mthca_no_uvp.patch
Type: application/octet-stream
Size: 466 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060402/7e3ecc66/attachment.obj>


More information about the ofw mailing list