[openib-general] [PATCH] user_mad: support retries in ib_umad_write

Hal Rosenstock halr at voltaire.com
Mon Jun 6 07:32:43 PDT 2005


user_mad: Support retries in ib_umad_write

This is another ABI version change. There will be parallel changes in
userspace/management to go along with this change.

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: include/ib_user_mad.h
===================================================================
--- include/ib_user_mad.h	(revision 2520)
+++ include/ib_user_mad.h	(working copy)
@@ -43,7 +43,7 @@
  * Increment this value if any changes that break userspace ABI
  * compatibility are made.
  */
-#define IB_USER_MAD_ABI_VERSION	3
+#define IB_USER_MAD_ABI_VERSION	4
 
 /*
  * Make sure that all structs defined in this file remain laid out so
@@ -58,6 +58,7 @@
  *   received (transaction ID in data[] will be set to TID of original
  *   request) (ignored on send)
  * @timeout_ms - Milliseconds to wait for response (unset on receive)
+ * @retries - Number of automatic retries to attempt
  * @qpn - Remote QP number received from/to be sent to
  * @qkey - Remote Q_Key to be sent with (unset on receive)
  * @lid - Remote lid received from/to be sent to
@@ -76,6 +77,7 @@
 	__u32	id;
 	__u32	status;
 	__u32	timeout_ms;
+	__u32	retries;
 	__u32	qpn;
 	__u32   qkey;
 	__u16	lid;
Index: core/user_mad.c
===================================================================
--- core/user_mad.c	(revision 2533)
+++ core/user_mad.c	(working copy)
@@ -348,6 +348,8 @@
 	}
 
 	packet->msg->send_wr.wr.ud.timeout_ms  = packet->mad.hdr.timeout_ms;
+	packet->msg->send_wr.wr.ud.retries = packet->mad.hdr.retries;
+
 	/* Override send WR WRID initialized in ib_create_send_mad */
 	packet->msg->send_wr.wr_id = (unsigned long) packet;
 






More information about the general mailing list