]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve IPv6 reassembly performance by hashing fragments into buckets.
authorJonathan T. Looney <jtl@FreeBSD.org>
Tue, 14 Aug 2018 17:17:37 +0000 (17:17 +0000)
committerJonathan T. Looney <jtl@FreeBSD.org>
Tue, 14 Aug 2018 17:17:37 +0000 (17:17 +0000)
commit80d7a85390cd094797201231c03c243c669a4e39
treedd9eb9946e264efd64b2a4c81aa4059f1623538d
parent5d9bd4551811d848bd20c0b3c4d977ec8386003f
Improve IPv6 reassembly performance by hashing fragments into buckets.

Currently, all IPv6 fragment reassembly queues are kept in a flat
linked list. This has a number of implications. Two significant
implications are: all reassembly operations share a common lock,
and it is possible for the linked list to grow quite large.

Improve IPv6 reassembly performance by hashing fragments into buckets,
each of which has its own lock. Calculate the hash key using a Jenkins
hash with a random seed.

Reviewed by: jhb
Security: FreeBSD-SA-18:10.ip
Security: CVE-2018-6923
sys/netinet6/frag6.c