cxgbe/t4_tom: There may not be a tid to update if the connection isn't

established.

MFC after:	2 weeks
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2017-08-31 23:34:08 +00:00
parent 2cc3b2eec5
commit 0a3bf7fb7e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323078

View File

@ -384,6 +384,8 @@ t4_ctloutput(struct toedev *tod, struct tcpcb *tp, int dir, int name)
switch (name) {
case TCP_NODELAY:
if (tp->t_state != TCPS_ESTABLISHED)
break;
t4_set_tcb_field(sc, toep->ctrlq, toep->tid, W_TCB_T_FLAGS,
V_TF_NAGLE(1), V_TF_NAGLE(tp->t_flags & TF_NODELAY ? 0 : 1),
0, 0, toep->ofld_rxq->iq.abs_id);