1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Move the TCP Blackbox Recorder probe in tcp_output.c to be with the

other tracing/debugging code.

Sponsored by:	Netflix, Inc.
This commit is contained in:
Jonathan T. Looney 2018-04-10 15:54:29 +00:00
parent 4889b58ce8
commit dcaffbd6fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332379

View File

@ -1311,10 +1311,6 @@ tcp_output(struct tcpcb *tp)
}
#endif
/* We're getting ready to send; log now. */
TCP_LOG_EVENT(tp, th, &so->so_rcv, &so->so_snd, TCP_LOG_OUT, ERRNO_UNK,
len, NULL, false);
/*
* Enable TSO and specify the size of the segments.
* The TCP pseudo header checksum is always provided.
@ -1363,6 +1359,10 @@ tcp_output(struct tcpcb *tp)
#endif /* TCPDEBUG */
TCP_PROBE3(debug__output, tp, th, m);
/* We're getting ready to send; log now. */
TCP_LOG_EVENT(tp, th, &so->so_rcv, &so->so_snd, TCP_LOG_OUT, ERRNO_UNK,
len, NULL, false);
/*
* Fill in IP length and desired time to live and
* send to IP level. There should be a better way