Remove unused/redundant default flows #6731
Closed
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.
This commit removes the default flows (flow 3, flow 8) of PreRoutingClassifier and NodePortMark.
For flow 3, there is no chance to use it since all packets will be matched by flows 1-2.
For flow 8, this is a redundant flow. For example, a packet matched by flow 1 or 2 will
be resubmitted to multiple tables, which means the packet will be processed in these tables
sequentially. Assuming that a packet with destination 192.168.77.200 is matched by flow 1:
resubmit(,NodePortMark)
, packet is matched by flow 8 and sent toSessionAffinity.
resubmit(,SessionAffinity)
.resubmit(,SessionAffinity)
, packet is matched by flow 9 again,returns to flow 1 to run the next action
resubmit(,ServiceLB)
.resubmit(,ServiceLB)
.We can see that the packet is matched by flow 9 twice. By removing flow 8, we can avoid that.