HomeFreeBSD

divert: Use CK_SLISTs for the divcb hash table

Description

divert: Use CK_SLISTs for the divcb hash table

The hash table is accessed in ip_divert_packet(), and there the accesses
are synchronized only by the net epoch, so plain SLIST is not safe.

Reviewed by: ae
MFC after: 1 week
Sponsored by: OPNsense
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D54011

(cherry picked from commit 74f7e916211acafd10af05efd893ccbac1881119)

Details

Provenance
markjAuthored on Dec 3 2025, 1:43 PM
Reviewer
ae
Differential Revision
D54011: ipdivert: Use CK_SLISTs for the divcb hash table
Parents
rGf50f8cbb401b: riscv/pmap: Handle superpages in pmap_extract_and_hold()
Branches
Unknown
Tags
Unknown