[ofw] [SRP] patch for SRP_MODE_NO_FMR_POOL flag check.

Alex Estrin alex.estrin at qlogic.com
Mon Feb 25 07:02:39 PST 2008


This patch adds SRP_MODE_NO_FMR_POOL flag check before initialize FMR
pool.

Please review.

Thanks,

Alex

Index: srp_hca.c
===================================================================
--- srp_hca.c	(revision 945)
+++ srp_hca.c	(working copy)
@@ -117,6 +117,12 @@
 		goto exit;
 	}
 
+	if ( g_srp_mode_flags & SRP_MODE_NO_FMR_POOL )
+	{
+		SRP_EXIT( SRP_DBG_PNP );
+		return IB_SUCCESS;
+	}
+
 	fmr_pool_create.max_pages_per_fmr =
SRP_MAX_SG_IN_INDIRECT_DATA_BUFFER;
 	fmr_pool_create.page_size = 12;
 	fmr_pool_create.access_ctrl = IB_AC_LOCAL_WRITE |
IB_AC_RDMA_READ | IB_AC_RDMA_WRITE;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: srp_hca_fmr_glag_check.diff
Type: application/octet-stream
Size: 506 bytes
Desc: srp_hca_fmr_glag_check.diff
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080225/94970266/attachment.obj>


More information about the ofw mailing list