]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337384:
authorjtl <jtl@FreeBSD.org>
Mon, 6 Aug 2018 17:41:53 +0000 (17:41 +0000)
committerjtl <jtl@FreeBSD.org>
Mon, 6 Aug 2018 17:41:53 +0000 (17:41 +0000)
commitdb2e2eea0366604ed65e6f50824471e22035f343
treeec1194ebbeaf41bb1c189073da5fd3370c10e4ba
parent0bf9c766cff09d09aa684f5184cad4b5a24e723b
MFC r337384:

Address concerns about CPU usage while doing TCP reassembly.

Currently, the per-queue limit is a function of the receive buffer
size and the MSS.  In certain cases (such as connections with large
receive buffers), the per-queue segment limit can be quite large.
Because we process segments as a linked list, large queues may not
perform acceptably.

The better long-term solution is to make the queue more efficient.
But, in the short-term, we can provide a way for a system
administrator to set the maximum queue size.

We set the default queue limit to 100.  This is an effort to balance
performance with a sane resource limit.  Depending on their
environment, goals, etc., an administrator may choose to modify this
limit in either direction.

Reviewed by: jhb
Approved by: so
Security: FreeBSD-SA-18:08.tcp
Security: CVE-2018-6922
share/man/man4/tcp.4
sys/netinet/tcp_reass.c