[Openib-windows] RE: [PATCH] MTHCA: Remove unused g_sqp_max_avs variable

Leonid Keller leonid at mellanox.co.il
Sun Apr 2 01:07:42 PST 2006


Thanx, commited to rev 269 

> -----Original Message-----
> From: Fab Tillier [mailto:ftillier at silverstorm.com] 
> Sent: Friday, March 31, 2006 11:26 PM
> To: Leonid Keller
> Cc: openib-windows at openib.org
> Subject: [PATCH] MTHCA: Remove unused g_sqp_max_avs variable
> 
> Hi Leo,
> 
> The g_sqp_max_avs variable is a relic of how VAPI used to 
> limit the number of AVs that could be allocated on a PD.  
> This no longer applies to MTHCA, so it can be removed.
> 
> - Fab
> 
> Index: hw/mthca/kernel/hca_verbs.c
> ===================================================================
> --- hw/mthca/kernel/hca_verbs.c	(revision 266)
> +++ hw/mthca/kernel/hca_verbs.c	(working copy)
> @@ -44,10 +44,7 @@
>  
>  #define PTR_ALIGN(size)	(((size) + sizeof(void*) - 1) & 
> ~(sizeof(void*)
> - 1))
>  
> -/* Matches definition in IbAccess for MaxSMPsWatermark */
> -uint32_t	g_sqp_max_avs = ((4096/sizeof(ib_mad_t))*32*5);
>  
> -
>  // Local declarations
>  ib_api_status_t
>  mlnx_query_qp (
> Index: hw/mthca/kernel/hca_data.h
> ===================================================================
> --- hw/mthca/kernel/hca_data.h	(revision 266)
> +++ hw/mthca/kernel/hca_data.h	(working copy)
> @@ -39,7 +39,7 @@
>  #include <mt_l2w.h>
>  #include <mthca_provider.h>
>  
> -extern uint32_t			g_sqp_max_avs;
> +
>  extern char				mlnx_uvp_lib_name[];
>  
> 
> 



More information about the ofw mailing list