-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Multicast] Multicast group auto-discovery #2652
Conversation
8f9708f
to
9cce75d
Compare
9cce75d
to
8ac0b68
Compare
This pull request introduces 1 alert when merging 8ac0b68 into f40b4ec - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## main #2652 +/- ##
==========================================
- Coverage 60.85% 60.43% -0.42%
==========================================
Files 295 297 +2
Lines 24897 25279 +382
==========================================
+ Hits 15150 15278 +128
- Misses 8096 8330 +234
- Partials 1651 1671 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
|
8ac0b68
to
9f4a43e
Compare
This pull request introduces 1 alert when merging 9f4a43e into 04619b6 - view on LGTM.com new alerts:
|
8ce22df
to
7742ef9
Compare
This pull request introduces 1 alert when merging 7742ef9 into d8d70ac - view on LGTM.com new alerts:
|
7742ef9
to
b21ade3
Compare
This pull request introduces 1 alert when merging b21ade3 into bfa1bc4 - view on LGTM.com new alerts:
|
b21ade3
to
dc64ca9
Compare
This pull request introduces 1 alert when merging dc64ca9 into dded211 - view on LGTM.com new alerts:
|
38fc4c6
to
dccac0e
Compare
const ( | ||
groupJoin eventType = iota | ||
groupLeave | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why the query version is 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think IGMP3 is now the main version for IGMP, so I use it as the default setting. Do you think we should send IGMP messages with all versions?
dccac0e
to
13c8a50
Compare
d7b5c56
to
dc14722
Compare
dc14722
to
2a42595
Compare
60e0883
to
85422c7
Compare
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test-integration |
@jianjuns do you have more comments? |
} | ||
status := obj.(*GroupMemberStatus) | ||
if c.groupHasInstalled(groupKey) { | ||
status.mutex.Lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would mind explaining why you need lock and unlock here? I don't think it is necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two goroutines to operate the groupCache, one is this one to install/uninstall flows or routing entries, and the other is to receive the GroupMemberEvent. If not lock the entry, a race might exist that we find a group is stale and before removing the flows/routing entries in worker, the other goroutine get a new membership report, but worker deletes the entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your explaination
85422c7
to
dfb0cd6
Compare
/test-all |
LGTM |
/test-e2e |
/test-e2e |
1 similar comment
/test-e2e |
1. Use packetIn/packetOut to collect IGMP membership report and detect Multicast group. 2. Add an OpenFlow entry for each Multicast group in which local Pods have joined to forward the packet normally and output it to antrea-gw0. 3. Output the Multicast traffic to antrea-gw0 if no local Pods have joined the target Multicast group. Signed-off-by: wenyingd <[email protected]>
dfb0cd6
to
54d9b75
Compare
/test-integration |
/test-windows-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Due to jenkins testbed issue, I have ran the required checks manually and the results are good. |
1. Use packetIn/packetOut to collect IGMP membership report and detect Multicast group. 2. Add an OpenFlow entry for each Multicast group in which local Pods have joined to forward the packet normally and output it to antrea-gw0. 3. Output the Multicast traffic to antrea-gw0 if no local Pods have joined the target Multicast group. Signed-off-by: wenyingd <[email protected]>
Use packetIn/packetOut to collect IGMP membership report and detect
Multicast group.
Add an OpenFlow entry for each Multicast group in which local Pods
have joined to forward the packet normally and output it to
antrea-gw0.
Output the Multicast traffic to antrea-gw0 if no local Pods have
joined the target Multicast group.
Signed-off-by: wenyingd [email protected]