Re: git: ff94500855c1 - main - Add tcp_freecb() - single place to free tcpcb.
- In reply to: Gleb Smirnoff : "git: ff94500855c1 - main - Add tcp_freecb() - single place to free tcpcb."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Nov 2021 08:10:49 UTC
On Fri, Nov 19, 2021 at 04:28:14AM +0000, Gleb Smirnoff wrote: T> The branch main has been updated by glebius: T> T> URL: https://cgit.FreeBSD.org/src/commit/?id=ff94500855c16d0d9cc18aa8b0ba73ea94020c56 T> T> commit ff94500855c16d0d9cc18aa8b0ba73ea94020c56 T> Author: Gleb Smirnoff <glebius@FreeBSD.org> T> AuthorDate: 2021-11-19 04:26:09 +0000 T> Commit: Gleb Smirnoff <glebius@FreeBSD.org> T> CommitDate: 2021-11-19 04:27:45 +0000 T> T> Add tcp_freecb() - single place to free tcpcb. T> T> Until this change there were two places where we would free tcpcb - T> tcp_discardcb() in case if all timers are drained and tcp_timer_discard() T> otherwise. They were pretty much copy-n-paste, except that in the T> default case we would run tcp_hc_update(). Merge this into single T> function tcp_freecb() and move new short version of tcp_timer_discard() T> to tcp_timer.c and make it static. T> T> Reviewed by: rrs, hselasky T> Differential revision: https://reviews.freebsd.org/D32965 Should have been https://reviews.freebsd.org/D32966 -- Gleb Smirnoff