Page MenuHomeFreeBSD

Add tcp_freecb() - single place to free tcpcb.
ClosedPublic

Authored by glebius on Nov 12 2021, 5:11 PM.
Tags
None
Referenced Files
F95780557: D32966.diff
Sun, Sep 22, 2:31 PM
Unknown Object (File)
Thu, Sep 5, 11:47 AM
Unknown Object (File)
Wed, Sep 4, 7:06 AM
Unknown Object (File)
Sat, Aug 31, 4:00 PM
Unknown Object (File)
Sat, Aug 31, 3:01 AM
Unknown Object (File)
Aug 13 2024, 11:55 AM
Unknown Object (File)
Aug 7 2024, 11:51 AM
Unknown Object (File)
Aug 7 2024, 7:13 AM
Subscribers

Details

Reviewers
hselasky
rrs
Group Reviewers
transport
Summary

Until this change there were two places where we would free tcpcb -
tcp_discardcb() in case if all timers are drained and tcp_timer_discard()
otherwise. They were pretty much copy-n-paste, except that in the
default case we would run tcp_hc_update(). Merge this into single
function tcp_freecb() and move new short version of tcp_timer_discard()
to tcp_timer.c and make it static.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42758
Build 39646: arc lint + arc unit