Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1379154 > unrolled thread

[net][PATCH v2 1/2] RDS: fix endianness for dp_ack_seq

Started bySantosh Shilimkar <santosh.shilimkar@oracle.com>
First post2016-04-14 19:50 +0200
Last post2016-04-14 19:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [net][PATCH v2 1/2] RDS: fix endianness for dp_ack_seq Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-04-14 19:50 +0200

#1379154 — [net][PATCH v2 1/2] RDS: fix endianness for dp_ack_seq

FromSantosh Shilimkar <santosh.shilimkar@oracle.com>
Date2016-04-14 19:50 +0200
Subject[net][PATCH v2 1/2] RDS: fix endianness for dp_ack_seq
Message-ID<rnTyW-5JF-11@gated-at.bofh.it>
From: Qing Huang <qing.huang@oracle.com>

dp->dp_ack_seq is used in big endian format. We need to do the
big endianness conversion when we assign a value in host format
to it.

Signed-off-by: Qing Huang <qing.huang@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
---
 net/rds/ib_cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c
index 8764970..310cabc 100644
--- a/net/rds/ib_cm.c
+++ b/net/rds/ib_cm.c
@@ -194,7 +194,7 @@ static void rds_ib_cm_fill_conn_param(struct rds_connection *conn,
 		dp->dp_protocol_major = RDS_PROTOCOL_MAJOR(protocol_version);
 		dp->dp_protocol_minor = RDS_PROTOCOL_MINOR(protocol_version);
 		dp->dp_protocol_minor_mask = cpu_to_be16(RDS_IB_SUPPORTED_PROTOCOLS);
-		dp->dp_ack_seq = rds_ib_piggyb_ack(ic);
+		dp->dp_ack_seq = cpu_to_be64(rds_ib_piggyb_ack(ic));
 
 		/* Advertise flow control */
 		if (ic->i_flowctl) {
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web