-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1.15] Multicast Datapath Backport #31668
Merged
michi-covalent
merged 5 commits into
cilium:v1.15
from
ldelossa:ldelossa/multicast-datapath-v1.15
Mar 29, 2024
Merged
[v1.15] Multicast Datapath Backport #31668
michi-covalent
merged 5 commits into
cilium:v1.15
from
ldelossa:ldelossa/multicast-datapath-v1.15
Mar 29, 2024
Commits on Mar 29, 2024
-
bpf,multicast: add map infrastructure
[ upstream commit b7822a3 ] This commit adds the eBPF map used to implement the synthetic multicast feature. A `BPF_MAP_TYPE_HASH_OF_MAPS`, which employees a `BPF_MAP_TYPE_HASH` inner map, is added to the datapath. The outer eBPF map is keyed by IPv4 multicast group addresses in big endian format and the values are `BPF_MAP_TYPE_HASH` maps. The inner hash map associates IPv4 source addresses with their subscriber multicast metadata. Each key/value in the inner hash map is a subscriber of the owning multicast group. Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
Configuration menu - View commit details
-
Copy full SHA for 1c04091 - Browse repository at this point
Copy the full SHA 1c04091View commit details -
bpf,mcast: initial IGMPv3 parsing in bpf_lxc
[ upstream commit d7e580f ] This commit introduces IGMPv3 detection and parsing. When bpf_lxc recognizes IGMP messages egressing the Pod we attempt to parse them. The parsing logic is as follows: 1. Determine if traffic is IGMP 2. Determine the IGMP message type 3. If the type is not a membership report simply drop it (for now) 4. Parse each group record in the membership report 5. For any group records which indicate a join add a subscriber to the multicast subscriber map, if it exists. Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
Configuration menu - View commit details
-
Copy full SHA for 2edf21c - Browse repository at this point
Copy the full SHA 2edf21cView commit details -
bpf,igmp: igmpv2 join and leave parsing
[ upstream commit 8c488dd ] This commit adds parsing of IGMPv2 messages in a similar fashion as IGMPv3 messages. Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
Configuration menu - View commit details
-
Copy full SHA for 4a0de05 - Browse repository at this point
Copy the full SHA 4a0de05View commit details -
bpf: implement multicast delivery
[ upstream commit 2afcb61 ] This commit implements replication and delivery of multicast packets. This commit also enables the Cilium datapath to access both `bpf_clone_redirect` and `bpf_map_for_each_elem` helpers. The datapath flow is illustrated below: ┌──────────────────────────────────────────┐ │ │ │ Sender │ │ ┌──────┐ ┌─────────┐ │ │ │ pod ├─────► bpf_lxc │ │ │ └──────┘ └────┬────┘ │ │ Local Receivers │ eBPF Replication │ │ ┌──────┐ ┌──────┐ │ and Redirection │ │ │ pod ◄─┤ veth ◄─┤(cil_from_container) │ │ └──────┘ └──────┘ │ ┌───────┐ │ │ ├─► vxlan │ │ │ ┌──────┐ ┌──────┐ │ └───┬───┘ │ │ │ pod ◄─┤ veth ◄─┘ │ │ │ └──────┘ └──────┘ ┌────┘ │ │ │ │ └─────────────────────┼────────────────────┘ │ ┌─────────────────────┼────────────────────┐ │ │ │ │ ┌───▼───┐ │ │ │ vxlan │ │ │ └───┬───┘ │ │ Remote Receivers │ eBPF Replication │ │ ┌──────┐ ┌──────┐ │ and Redirection │ │ │ pod ◄─┤ veth ◄─┤ (from_overlay) │ │ └──────┘ └──────┘ │ │ │ │ │ │ ┌──────┐ ┌──────┐ │ │ │ │ pod ◄─┤ veth ◄─┘ │ │ └──────┘ └──────┘ │ │ │ └──────────────────────────────────────────┘ A multicast sender sends a multicast packet. The sender's bpf_lxc program does a lookup in the multicast group map to discover who has subscribed to the group. The program then clones and redirects the packets to the subscriber's ingress device on the host namespace. If the subscriber is remote the packet is cloned and redirected to a vxlan device for encapsulation. Once the host stack forwards the vxlan encap'd packet to the receiving vxlan device on the remote host a similar "clone and redirect" process is performed once the vxlan driver decaps the packet. Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
Configuration menu - View commit details
-
Copy full SHA for 7255b3b - Browse repository at this point
Copy the full SHA 7255b3bView commit details -
Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
Configuration menu - View commit details
-
Copy full SHA for a07fd93 - Browse repository at this point
Copy the full SHA a07fd93View commit details
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.