svn commit: r323078 - head/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Thu Aug 31 23:34:09 UTC 2017


Author: np
Date: Thu Aug 31 23:34:08 2017
New Revision: 323078
URL: https://svnweb.freebsd.org/changeset/base/323078

Log:
  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

Modified:
  head/sys/dev/cxgbe/tom/t4_tom.c

Modified: head/sys/dev/cxgbe/tom/t4_tom.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_tom.c	Thu Aug 31 23:19:18 2017	(r323077)
+++ head/sys/dev/cxgbe/tom/t4_tom.c	Thu Aug 31 23:34:08 2017	(r323078)
@@ -384,6 +384,8 @@ t4_ctloutput(struct toedev *tod, struct tcpcb *tp, int
 
 	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);


More information about the svn-src-all mailing list