Repository navigation
[multicast] M2P forwarding, OPTE port subscription, and sled-agent propagation - #10070
zeeshanlakhani wants to merge 38 commits into
Conversation
3efe7fa to
98e9742
Compare
|
Note: Both |
98e9742 to
b510a9f
Compare
b510a9f to
1402d4d
Compare
|
|
102d7fb to
043af28
Compare
FelixMcFelix
left a comment
There was a problem hiding this comment.
I'm going to be posting comments in chunks given the apparent size of the PR, so please bear with me there if I miss something that's covered by a later file. Apart from that I'm seeing various changes from main interspersed here, so I don't know if something is up with the branch targeting.
…main builds Bump maghemite and OPTE to versions with the latest multicast support. OPTE now has the option to be installed via p5p package override from buildomat rather than directly downloading xde/opteadm binaries. The override mechanism (tools/opte_version_override) is sourced and packaged for use with install_opte.sh, deploy.sh, releng, and CI to install the unpublished OPTE build until it lands in the helios pkg repo. Note: CI check added to reject OPTE_COMMIT override on PRs targeting main.
9cdf741 to
18943d0
Compare
FelixMcFelix
left a comment
There was a problem hiding this comment.
Thanks Zeeshan; I haven't looked at integration_tests/multicast/networking_integration.rs, but otherwise some thoughts going through the work.
46eb139 to
6b07a46
Compare
FelixMcFelix
left a comment
There was a problem hiding this comment.
I think this addresses the questions I had, sorry for the delay in getting back to you. There's one point on getting at least some group distribution across switches, but other than that I think all we need is that you request a lab-2.0-opte-0.xx image on https://github.com/oxidecomputer/meta, and use the published OPTE package & maghemite/main.
45bf79e to
3d996f0
Compare
This renumbers the sled-agent API version MCAST_M2P_FORWARDING from 42 to 43, since main claimed 42 for NON_EMPTY_UPLINK_PORTS and moves the nexus MULTICAST_SOURCE_LIMITS version up to 2026-07-16. This adapts the multicast integration tests to the status-carrying `CondCheckError::NotYet` variant from #10598, populating statuses where they identify the unmet condition.
b272b8d to
45b72b8
Compare
An explicit leave or instance delete soft-deletes the membership row before the sled's OPTE subscription is torn down. The row previously cleared `sled_id` at soft-delete time, so a failed unsubscribe left no record of which sled still held the subscription and the hard-delete sweep could reap the row with dataplane state that's still programmed. This involves separate membership intent from just dataplane convergence: - The soft-delete producers (explicit leave, instance delete) retain the `sled_id` field. Instance-stop still clears it, since the VMM and its OPTE port are destroyed together. - The membership reconciler adds a pending-cleanup pass over rows with `time_deleted` set and `sled_id` present. It unsubscribes via the member's stored multicast IP, skips sleds the instance no longer occupies, and guards against a rejoin of the same (multicast IP, instance) pair. - When clearing `sled_id` after a successful or unnecessary unsubscribe, we perform a compare-and-swap keyed on the expected sled. - The hard-delete sweep only reaps rows whose `sled_id` is already cleared. Note: sled-agent now replaces a group's source filter on repeat joins rather than accumulating entries, while leaves are keyed by group IP.
This validates per-member source lists (size cap, no duplicates) at instance create, instance reconfigure, and in the join saga action, so that malformed specs fail the request instead of unwinding a partially executed saga. The up-front group source-union check now excludes the joining member's stored sources, matching the union the attach CTE computes for a repeat join that replaces a filter. The attach CTE's write and final SELECT now reference the validation CTE explicitly, so the sentinel check cannot be optimized away from the mutation.
45b72b8 to
e6c9cc2
Compare
4f3c621 to
7ccb1f4
Compare
7ccb1f4 to
18b7c06
Compare
…PI 51, MULTICAST_SOURCE_LIMITS to 2026_08_31_01)
Complete the multicast data path by adding per-sled M2P (multicast-to-physical) mapping, forwarding entry management, and OPTE port subscription for multicast group members.
Sled-agent
MCAST_M2P_FORWARDING), which addsset_mcast_m2p/clear_mcast_m2p/list_mcast_m2pandset_mcast_fwd/clear_mcast_fwd/list_mcast_fwdmethodsvmm_join/leave_multicast_groupnow move to that version and carryInstanceMulticastMembership, with_v7shims retained for the prior versioningNexus
sled.rs(MulticastSledClient) encapsulating all sled-agent multicast interactions: subscribe/unsubscribe, M2P/forwarding propagation and teardownsled_idretained, and the "Deleting"-state sweep skips rows that still hold asled_idso the members RPW can finish the unsubscribe appropriatelycompute_sources_for_dpd,UnderlayMulticastIpv6::try_fromvalidation, andselect_one_switchfor read-only queries where both switches hold identical state (distinct from the hashedselect_forwarding_switch_ip)Source limits
MULTICAST_SOURCE_LIMITS), with aninstance_multicast_group_joinshim for the prior versionMAX_SSM_SOURCE_IPS(64) gives way toMAX_SOURCE_IPS_PER_MEMBER(32) andMAX_SOURCE_IPS_PER_GROUP(256).validate_member_source_ipsrejects oversized lists and duplicate sources, and member attach now rejects joins whose source union would exceed the per-group cap via a union-size CTE.