Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2020 23:05:11 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360645 - head/sys/netinet/tcp_stacks
Message-ID:  <202005042305.044N5BA0058754@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon May  4 23:05:11 2020
New Revision: 360645
URL: https://svnweb.freebsd.org/changeset/base/360645

Log:
  Add net epoch support back, which was taken out by accident in
  https://svnweb.freebsd.org/changeset/base/360639
  
  Reviewed by:		rrs
  Sponsored by:		Netflix, Inc.
  Differential Revision:	https://reviews.freebsd.org/D24694

Modified:
  head/sys/netinet/tcp_stacks/rack.c

Modified: head/sys/netinet/tcp_stacks/rack.c
==============================================================================
--- head/sys/netinet/tcp_stacks/rack.c	Mon May  4 23:02:58 2020	(r360644)
+++ head/sys/netinet/tcp_stacks/rack.c	Mon May  4 23:05:11 2020	(r360645)
@@ -12012,6 +12012,7 @@ rack_output(struct tcpcb *tp)
 	hw_tls = (so->so_snd.sb_flags & SB_TLS_IFNET) != 0;
 #endif
 
+	NET_EPOCH_ASSERT();
 	INP_WLOCK_ASSERT(inp);
 #ifdef TCP_OFFLOAD
 	if (tp->t_flags & TF_TOE)
@@ -14212,6 +14213,7 @@ static int
 rack_set_sockopt(struct socket *so, struct sockopt *sopt,
     struct inpcb *inp, struct tcpcb *tp, struct tcp_rack *rack)
 {
+	struct epoch_tracker et;
 	uint64_t val;
 	int32_t error = 0, optval;
 	uint16_t ca, ss;
@@ -14719,7 +14721,9 @@ rack_set_sockopt(struct socket *so, struct sockopt *so
 		if (tp->t_flags & TF_DELACK) {
 			tp->t_flags &= ~TF_DELACK;
 			tp->t_flags |= TF_ACKNOW;
+			NET_EPOCH_ENTER(et);
 			rack_output(tp);
+			NET_EPOCH_EXIT(et);
 		}
 		break;
 



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