HomeFreeBSD

siftr: refactor batch log processing

Description

siftr: refactor batch log processing

Refactoring to perform the batch processing of
log messaged in two phases. First cycling through a limited
number of collected packets, and only thereafter freeing
the processed packets. This prevents any chance of calling
free while in a critical / spinlocked section.

Reviewed By: tuexen
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D42949

(cherry picked from commit a95cd6e4870b79178860e03366c4327e533ecf1e)

Details

Provenance
rscheffAuthored on Dec 7 2023, 1:43 PM
mariusCommitted on Feb 5 2026, 9:54 PM
Reviewer
tuexen
Differential Revision
D42949: siftr: refactor batch log processing
Parents
rGa327d997f5a1: siftr: flush pkt_nodes to the log file in batch
Branches
Unknown
Tags
Unknown