Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2020 17:07:33 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r368583 - stable/12/sys/dev/cxgbe/tom
Message-ID:  <202012121707.0BCH7XqM019883@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Sat Dec 12 17:07:33 2020
New Revision: 368583
URL: https://svnweb.freebsd.org/changeset/base/368583

Log:
  MFC 367578: 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.

Modified:
  stable/12/sys/dev/cxgbe/tom/t4_tom.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/tom/t4_tom.c
==============================================================================
--- stable/12/sys/dev/cxgbe/tom/t4_tom.c	Sat Dec 12 17:04:54 2020	(r368582)
+++ stable/12/sys/dev/cxgbe/tom/t4_tom.c	Sat Dec 12 17:07:33 2020	(r368583)
@@ -381,6 +381,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;



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