sdp: Use the correct socket buffer in sdp_post_recvs_needed().

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Mark Johnston 2016-07-29 20:54:43 +00:00
parent 75b94efd08
commit f66ec15275
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303511

View File

@ -175,7 +175,7 @@ sdp_post_recvs_needed(struct sdp_sock *ssk)
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;
/*