Skip to content

examples: ifquarantine filters with one instance per CPU - #794

Open
lneto wants to merge 1 commit into
claude_percpu_resumefrom
claude_examples_percpu
Open

examples: ifquarantine filters with one instance per CPU#794
lneto wants to merge 1 commit into
claude_percpu_resumefrom
claude_examples_percpu

Conversation

@lneto

@lneto lneto commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The ifquarantine filter is a packet hook that keeps no state of its own, the case one runtime per CPU serves, and it could not be one: it takes the quarantine set through resume, which the percpu object did not have.

The control runtime runs the filter as one instance per CPU, sharing the netfilter hook, and hands each instance the set through percpu:resume.

Based on #792, which gives the percpu object that resume.

@lneto
lneto force-pushed the claude_percpu_resume branch from c410917 to 3830dda Compare September 6, 2026 19:19
@lneto
lneto force-pushed the claude_examples_percpu branch from 03e2cf6 to 5aa5c09 Compare September 6, 2026 19:19
@lneto
lneto force-pushed the claude_percpu_resume branch from 3830dda to 778a873 Compare September 6, 2026 23:06
@lneto
lneto force-pushed the claude_examples_percpu branch 2 times, most recently from 9a0dc93 to f7c56ed Compare September 7, 2026 12:08
@lneto
lneto force-pushed the claude_percpu_resume branch from 778a873 to 0bf193e Compare September 7, 2026 13:58
@lneto
lneto force-pushed the claude_examples_percpu branch from f7c56ed to 5ca13dd Compare September 7, 2026 13:58
@lneto
lneto force-pushed the claude_percpu_resume branch from 0bf193e to 7a57e49 Compare September 7, 2026 14:19
@lneto
lneto force-pushed the claude_examples_percpu branch from 5ca13dd to e18a892 Compare September 7, 2026 14:19
The filter is a packet hook, the case the percpu object serves, and it
took the quarantine set through resume, which the object gained. The
control runtime runs it percpu and resumes every instance with the set.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@lneto
lneto force-pushed the claude_percpu_resume branch from 7a57e49 to c43eb2f Compare September 7, 2026 22:43
@lneto
lneto force-pushed the claude_examples_percpu branch from e18a892 to eabd607 Compare September 7, 2026 22:43
@lneto lneto changed the title examples: the netfilter examples run as percpu scripts examples: ifquarantine filters with one instance per CPU Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant