Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2016 20:54:44 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303511 - head/sys/ofed/drivers/infiniband/ulp/sdp
Message-ID:  <201607292054.u6TKsiV4065155@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Jul 29 20:54:43 2016
New Revision: 303511
URL: https://svnweb.freebsd.org/changeset/base/303511

Log:
  sdp: Use the correct socket buffer in sdp_post_recvs_needed().
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c

Modified: head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c	Fri Jul 29 20:52:18 2016	(r303510)
+++ head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c	Fri Jul 29 20:54:43 2016	(r303511)
@@ -175,7 +175,7 @@ sdp_post_recvs_needed(struct sdp_sock *s
 		return 1;
 
 	buffer_size = ssk->recv_bytes;
-	max_bytes = max(ssk->socket->so_snd.sb_hiwat,
+	max_bytes = max(ssk->socket->so_rcv.sb_hiwat,
 	    (1 + SDP_MIN_TX_CREDITS) * buffer_size);
 	max_bytes *= rcvbuf_scale;
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607292054.u6TKsiV4065155>