HomeFreeBSD

tcp: initialize the LRO hash table with correct size

Description

tcp: initialize the LRO hash table with correct size

There will at most lro_entries entries in the LRO hash table. So no
need to take lro_mbufs into account, which only results in the
LRO hash table being too large and therefore wasting memory.

Reviewed by: rrs
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D46378

(cherry picked from commit aa6c490bf80fcef15cfc0d3f562fae19ef2375aa)

Details

Provenance
tuexenAuthored on Aug 20 2024, 3:30 PM
Reviewer
rrs
Differential Revision
D46378: tcp: initialize the LRO hash table correctly
Parents
rG118ab70d5789: tcp: fix list iteration in tcp_lro_flush_active()
Branches
Unknown
Tags
Unknown