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

Leonid Keller leonid at mellanox.co.il
Mon Apr 10 02:46:15 PDT 2006


Thanks, applied in 301 revision 

> -----Original Message-----
> From: Fab Tillier [mailto:ftillier at silverstorm.com] 
> Sent: Sunday, April 02, 2006 11:27 PM
> To: Leonid Keller
> Cc: openib-windows at openib.org
> Subject: [PATCH] MTHCA: Allow user-mode to work without a UVP
> 
> 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))) {
> 



More information about the ofw mailing list