forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tunneling: Track recursion levels across ARP generation.
If a packet is output to a tunnel port when userspace tunneling is enabled, it will cause an ARP packet to be generated if the destination is unknown. This ARP packet is injected into the physical bridge as a new packet, where it is flooded. If there is a loop (such as if the tunnel destination is the same bridge), the result will be infinite recursion. Even though we currently track recursion limits, they are not effective here since each ARP packet is considered to be a new translation. This changes the behavior so that each ARP flow translation is initialized with the recursion counter of the previous flow. Note that the problem only applies to ARP - data packets in a loop will hit an existing recursion counter in the datapath. An additional side effect of this change is that ARP packets are no longer unconditionally flooded in the new bridge. They will now follow any flow rules in the new bridge that might apply to them, the same as with the kernel datapath. Reported-by: David Evans <[email protected]> Tested-by: David Evans <[email protected]> Signed-off-by: Jesse Gross <[email protected]> Acked-by: Pravin B Shelar <[email protected]>
- Loading branch information
1 parent
1f9575c
commit cdd42ed
Showing
4 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters