[rds-devel] [PATCH] rds-stress: always send up-to-date sequence
number
Olaf Kirch
olaf.kirch at oracle.com
Thu Jan 3 13:37:58 PST 2008
From: Olaf Kirch <olaf.kirch at oracle.com>
rds-stress: always send up-to-date sequence number
With the recent changes in support of RDMA, ACK packets would sometimes
get sent with the wrong sequence number. This patch makes sure we always
put the current seqno in the header.
Signed-off-by: Olaf Kirch <olaf.kirch at oracle.com>
---
rds-stress.c | 4 ++++
1 file changed, 4 insertions(+)
Index: rds-tools/rds-stress.c
===================================================================
--- rds-tools.orig/rds-stress.c
+++ rds-tools/rds-stress.c
@@ -915,6 +915,10 @@ static int send_packet(int fd, struct ta
uint64_t *rdma_id_p = NULL;
ssize_t ret;
+ /* Make sure we always have the current sequence number.
+ * When we send ACK packets, the seq that gets filled in is
+ * stale. */
+ hdr->seq = ntohl(t->send_seq);
fill_hdr(buf, size, hdr);
memset(&msg, 0, sizeof(msg));
--
Olaf Kirch | --- o --- Nous sommes du soleil we love when we play
okir at lst.de | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax
More information about the rds-devel
mailing list