]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tcp_timewait: use on stack struct tcptw as last resort
authorGleb Smirnoff <glebius@FreeBSD.org>
Fri, 19 Nov 2021 04:24:46 +0000 (20:24 -0800)
committerGleb Smirnoff <glebius@FreeBSD.org>
Fri, 19 Nov 2021 04:27:45 +0000 (20:27 -0800)
commitfb8588d2cb449518a9e8dc75ef34ed2094c68835
tree63bf35d3abf7ae0eb3863f477e6f6cf69ae8b727
parent27a04f59646bea70e8461095eb835e92066702ef
tcp_timewait: use on stack struct tcptw as last resort

In case we failed to uma_zalloc() and also failed to reuse with
tcp_tw_2msl_scan(), then just use on stack tcptw.  This will allow
to run through tcp_twrespond() and standard tcpcb discard routine.

Reviewed by: rrs
Differential revision: https://reviews.freebsd.org/D32965
sys/netinet/tcp_timewait.c