Skip to contentSkip to conversation

ib/cm: fix layout of APR message

PATCH In review Eli Cohen 3 participants 3 messages Dec 19, 2011 – Jan 4, 2012 InfiniBand

lore
Share & tools
lore

Eli Cohen

author
#0 lore raw

PATCH v2 1/1 ib/cm: fix layout of APR message

Add a missing 16 bit reserved field between ap_status and info fields.

---
Use __be16 instead of u16 for the reserved field for consistency.

 drivers/infiniband/core/cm_msgs.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/infiniband/core/cm_msgs.h +1 -0
index 7e63c08..b320aad 100644
@@ -771,6 +771,7 @@ struct cm_apr_msg {
 
 	u8 info_length;
 	u8 ap_status;
+	__be16 rsvd;
 	u8 info[IB_CM_APR_INFO_LENGTH];
 
 	u8 private_data[IB_CM_APR_PRIVATE_DATA_SIZE];
Signature · 6 lines
1.7.8

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v2 1/1
#1 lore raw
Quoted 3 lines

Add a missing 16 bit reserved field between ap_status and info fields.

Quoted 20 lines

---
Use __be16 instead of u16 for the reserved field for consistency.

 drivers/infiniband/core/cm_msgs.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/infiniband/core/cm_msgs.h +1 -1
index 7e63c08..b320aad 100644
@@ -771,6 +771,7 @@ struct cm_apr_msg {
 
 	u8 info_length;
 	u8 ap_status;
+	__be16 rsvd;
 	u8 info[IB_CM_APR_INFO_LENGTH];
 
 	u8 private_data[IB_CM_APR_PRIVATE_DATA_SIZE];
--
Quoted 1 line

1.7.8

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html