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

John Baldwin jhb at FreeBSD.org
Tue Nov 10 19:54:39 UTC 2020


Author: jhb
Date: Tue Nov 10 19:54:39 2020
New Revision: 367578
URL: https://svnweb.freebsd.org/changeset/base/367578

Log:
  Clear tp->tod in t4_pcb_detach().
  
  Otherwise, a socket can have a non-NULL tp->tod while TF_TOE is clear.
  In particular, if a newly accepted socket falls back to non-TOE due to
  an active open failure, the non-TOE socket will still have tp->tod set
  even though TF_TOE is clear.
  
  Reviewed by:	np
  MFC after:	2 weeks
  Sponsored by:	Chelsio Communications
  Differential Revision:	https://reviews.freebsd.org/D27028

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	Tue Nov 10 19:15:13 2020	(r367577)
+++ head/sys/dev/cxgbe/tom/t4_tom.c	Tue Nov 10 19:54:39 2020	(r367578)
@@ -382,6 +382,7 @@ t4_pcb_detach(struct toedev *tod __unused, struct tcpc
 	}
 #endif
 
+	tp->tod = NULL;
 	tp->t_toe = NULL;
 	tp->t_flags &= ~TF_TOE;
 	toep->flags &= ~TPF_ATTACHED;


More information about the svn-src-head mailing list