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
This commit is contained in:
parent
570045a0fc
commit
51a5392297
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360645
@ -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 *sopt,
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user