cxgbe/t4_tom: sbspace on listening sockets is no longer supported (as of

r319722), use sol_sbrcv_hiwat instead.

Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2017-06-27 17:43:28 +00:00
parent f5b7359a00
commit 98d391a0d3

View File

@ -1185,6 +1185,7 @@ do_pass_accept_req(struct sge_iq *iq, const struct rss_header *rss,
struct synq_entry *synqe = NULL;
int reject_reason, v, ntids;
uint16_t vid;
u_int wnd;
#ifdef INVARIANTS
unsigned int opcode = G_CPL_OPCODE(be32toh(OPCODE_TID(cpl)));
#endif
@ -1326,10 +1327,10 @@ found:
mtu_idx = find_best_mtu_idx(sc, &inc, be16toh(cpl->tcpopt.mss));
rscale = cpl->tcpopt.wsf && V_tcp_do_rfc1323 ? select_rcv_wscale() : 0;
SOCKBUF_LOCK(&so->so_rcv);
/* opt0 rcv_bufsiz initially, assumes its normal meaning later */
rx_credits = min(select_rcv_wnd(so) >> 10, M_RCV_BUFSIZ);
SOCKBUF_UNLOCK(&so->so_rcv);
wnd = max(so->sol_sbrcv_hiwat, MIN_RCV_WND);
wnd = min(wnd, MAX_RCV_WND);
rx_credits = min(wnd >> 10, M_RCV_BUFSIZ);
save_qids_in_mbuf(m, vi);
get_qids_from_mbuf(m, NULL, &rxqid);