[openib-general] [PATCH] change bitfields to unsigned value

Sean Hefty mshefty at ichips.intel.com
Wed Jan 19 11:41:29 PST 2005


Patch changes bitfield definitions from int to unsigned int, as suggested
by Roland.

signed-off-by: Sean Hefty <sean.hefty at intel.com>

Index: include/ib_cm.h
===================================================================
--- include/ib_cm.h	(revision 1567)
+++ include/ib_cm.h	(working copy)
@@ -117,29 +117,29 @@ struct ib_cm_req_event_param {
 	u32			remote_qpn;
 	enum ib_qp_type		qp_type;
 
-	u32	starting_psn;
-	u8	responder_resources;
-	u8	initiator_depth;
-	int	local_cm_response_timeout:5;
-	int	flow_control:1;
-	int	remote_cm_response_timeout:5;
-	int	retry_count:3;
-	int	rnr_retry_count:3;
-	int	srq:1;
+	u32			starting_psn;
+	u8			responder_resources;
+	u8			initiator_depth;
+	unsigned int		local_cm_response_timeout:5;
+	unsigned int		flow_control:1;
+	unsigned int		remote_cm_response_timeout:5;
+	unsigned int		retry_count:3;
+	unsigned int		rnr_retry_count:3;
+	unsigned int		srq:1;
 };
 
 struct ib_cm_rep_event_param {
-	u64	remote_ca_guid;
-	u32	remote_qkey;
-	u32	remote_qpn;
-	u32	starting_psn;
-	u8	responder_resources;
-	u8	initiator_depth;
-	int	target_ack_delay:5;
-	int	failover_accepted:2;
-	int	flow_control:1;
-	int	rnr_retry_count:3;
-	int	srq:1;
+	u64			remote_ca_guid;
+	u32			remote_qkey;
+	u32			remote_qpn;
+	u32			starting_psn;
+	u8			responder_resources;
+	u8			initiator_depth;
+	unsigned int		target_ack_delay:5;
+	unsigned int		failover_accepted:2;
+	unsigned int		flow_control:1;
+	unsigned int		rnr_retry_count:3;
+	unsigned int		srq:1;
 };
 
 enum ib_cm_rej_reason {



More information about the general mailing list