Skip to content

feat(virtio) Implement CTRL_RX support for virtio-net#669

Merged
ytakano merged 1 commit intomainfrom
feat/virtio-net-ctrl-rx
Mar 2, 2026
Merged

feat(virtio) Implement CTRL_RX support for virtio-net#669
ytakano merged 1 commit intomainfrom
feat/virtio-net-ctrl-rx

Conversation

@Enigamict
Copy link
Contributor

Description

Reference(https://github.com/openbsd/src/blob/bd322c589650b5d3867e219910dae322f62cb2fc/sys/dev/pv/if_vio.c#L2112)

I implemented vio_iff() with reference to OpenBSD’s if_vio.c. Previously, the NIC behavior was effectively biased toward receiving all packets (PROMISC/ALLMULTI). By adding CTRL_RX and MAC filter configuration, multicast reception is now limited to packets whose destination MAC addresses match registered entries. If unsupported or if configuration fails, it falls back to the previous behavior.

Related links

How was this PR tested?

Notes for reviewers

@Enigamict Enigamict force-pushed the feat/virtio-net-ctrl-rx branch from c92acc7 to 1860591 Compare February 26, 2026 12:34
@Enigamict Enigamict marked this pull request as ready for review February 26, 2026 12:38
@Enigamict Enigamict requested a review from ytakano February 26, 2026 12:38
@ytakano ytakano merged commit 21c220a into main Mar 2, 2026
1 check passed
@ytakano ytakano deleted the feat/virtio-net-ctrl-rx branch March 2, 2026 06:53
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.

2 participants