[rds-devel] [PATCH] rds-stress: always send up-to-date sequence number

Vladimir Sokolovsky vlad at dev.mellanox.co.il
Mon Jan 7 01:00:44 PST 2008


Olaf Kirch wrote:
> 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));
>
>   
Applied to git://git.openfabrics.org/ofed_1_3/rds-tools.git

Regards,
Vladimir



More information about the rds-devel mailing list