Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
userspace: Enable non-bridge port as tunnel endpoint.
For userspace datapath, currently only the bridge itself, the LOCAL port, can be the tunnel endpoint to encap/decap tunnel packets. This patch enables non-bridge port as tunnel endpoint. One use case is for users to create a bridge and a vtep port as tap, and configure underlay IP at vtep port as the tunnel endpoint. This patch causes failure for test "ptap - L3 over patch port". This is because this test is already using non-bridge port gre1 as tunnel endpoint. In this test, a flow is added to redirect tunnel packets to gre1 port, as shown below: ovs-ofctl add-flow br1 in_port=p1,actions=output=gre1 It later generates a datapath flow which matches an extra eth field: - recirc_id(0),...,eth_type(0x0800),... + recirc_id(0),...,eth(dst=1e:2c:e9:2a:66:9e),eth_type(0x0800),... With this patch, this flow need only a NORMAL action. Signed-off-by: William Tu <u9012063@gmail.com> Co-authored-by: William Tu <u9012063@gmail.com> Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
- Loading branch information
Showing
3 changed files
with
104 additions
and
15 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