[viona, mac-filter, mcast] install guest multicast MAC filter tables via V7 ioctls - #1210
Open
zeeshanlakhani wants to merge 1 commit into
Open
[viona, mac-filter, mcast] install guest multicast MAC filter tables via V7 ioctls#1210zeeshanlakhani wants to merge 1 commit into
zeeshanlakhani wants to merge 1 commit into
Conversation
…via V7 ioctls Guest multicast interest has been driven by `VIONA_PROMISC_MULTI`, delivering multicast frames for the guests to filter. We saw duplication issues at guest Rx when packets reached both the classified and promiscuous callbacks. This led to the viona interface V7 scoped changes in [illumos-gate](https://github.com/oxidecomputer/illumos-gate/blob/5ffff4b86e486e1f9d7860be1368386699a7829a) / [change 775](https://code.oxide.computer/c/illumos-gate/+/775). Given the upstream changes, this work introduces `VNA_IOC_SET_MAC_FILTERS` to install guest multicast tables on the underlay MAC client backing viona. `VNA_IOC_GET_MAC_FILTERS` is used for reading back installed entries from the table. Classified delivery can replace all-multicast mode once the guest supplies a table that fits and no broader receive mode is necessary. All-multicast remains the fallback for guests that haven't sent a table request or have exceeded the kernel's capacity. Most of the work here goes into handling ioctl failures, semantic result codes, and fallback. This includes explicit multicast table management, reset handling, and Falcon-build `AllVlan` logic. Most importantly (most scary), this raises the minimum required host viona API to V7. We're keeping the V1 viona state payload for now, with import / export handling for the multicast table state. This is the first of a few different PRs upcoming, including - [ ] CTRL_RX receive-mode handling - [ ] send notification on `NEEDS_RESET` status
zeeshanlakhani
force-pushed
the
zl/mcast-mac-filter
branch
from
September 7, 2026 15:25
63d156a to
8c7cc6a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guest multicast interest has been driven by
VIONA_PROMISC_MULTI, delivering multicast frames for the guests to filter. We saw duplication issues at guest Rx when packets reached both the classified and promiscuous callbacks. This led to the viona interface V7 scoped changes in illumos-gate / change 775.Given the upstream changes, this work introduces
VNA_IOC_SET_MAC_FILTERSto install guest multicast tables on the underlay MAC client backing viona.VNA_IOC_GET_MAC_FILTERSis used for reading back installed entries from the table. Classified delivery can replace all-multicast mode once the guest supplies a table that fits and no broader receive mode is necessary. All-multicast remains the fallback for guests that haven't sent a table request or have exceeded the kernel's capacity.Most of the work here goes into handling ioctl failures, semantic result codes, and fallback. This includes explicit multicast table management, reset handling, and Falcon-build
AllVlanlogic.Most importantly (most scary), this raises the minimum required host viona API to V7. We're keeping the V1 viona state payload for now, with import / export handling for the multicast table state.
Note: This work will fail on CI as don't have special handling. Chat with @iximeow for more.
This is the first of a few different PRs upcoming, including
NEEDS_RESETstatus