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

Fab Tillier ftillier at silverstorm.com
Fri Mar 31 13:25:47 PST 2006


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[];
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mthca_sqp_max_avs.patch
Type: application/octet-stream
Size: 818 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060331/f00a9dde/attachment.obj>


More information about the ofw mailing list