[ofw][IPoIB] patch for receive path.
Alex Estrin
alex.estrin at qlogic.com
Fri Jun 6 13:01:08 PDT 2008
If inline receive buffers are disabled then receive path is broken.
Proposed changes fix it.
Please review.
Thanks,
Alex.
Index: ipoib/kernel/ipoib_port.c
===================================================================
--- ipoib/kernel/ipoib_port.c (revision 1245)
+++ ipoib/kernel/ipoib_port.c (working copy)
@@ -1140,8 +1140,10 @@
{
ipoib_recv_desc_t *p_desc;
ipoib_port_t *p_port;
+
+#if IPOIB_INLINE_RECV
uint32_t ds0_len;
-
+#endif
IPOIB_ENTER( IPOIB_DBG_ALLOC );
CL_ASSERT( p_object );
@@ -1199,6 +1201,7 @@
p_desc->local_ds[0].vaddr = cl_get_physaddr( p_desc->p_buf );
p_desc->local_ds[0].length = sizeof(ipoib_pkt_t) +
sizeof(ib_grh_t);
p_desc->local_ds[0].lkey = p_port->ib_mgr.lkey;
+ p_desc->wr.num_ds = 1;
#endif /* IPOIB_INLINE_RECV */
*pp_pool_item = &p_desc->item;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_inline_recv.diff
Type: application/octet-stream
Size: 713 bytes
Desc: ipoib_inline_recv.diff
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080606/2416b2e0/attachment.obj>
More information about the ofw
mailing list