Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Aug 2017 23:34:08 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323078 - head/sys/dev/cxgbe/tom
Message-ID:  <201708312334.v7VNY8JZ083345@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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