Re: git: ff94500855c1 - main - Add tcp_freecb() - single place to free tcpcb.

From: Gleb Smirnoff <>
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> commit ff94500855c16d0d9cc18aa8b0ba73ea94020c56
T> Author:     Gleb Smirnoff <>
T> AuthorDate: 2021-11-19 04:26:09 +0000
T> Commit:     Gleb Smirnoff <>
T> CommitDate: 2021-11-19 04:27:45 +0000
T>     Add tcp_freecb() - single place to free tcpcb.
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>     Reviewed by:            rrs, hselasky
T>     Differential revision:

Should have been

Gleb Smirnoff