]> git.proxmox.com Git - mirror_ovs.git/commit - lib/ovs-router.c
ofproto-dpif-xlate: makes OVS native tunneling honor tunnel-specified source addresses
authorwenxu <wenxu@ucloud.cn>
Wed, 18 Apr 2018 03:03:47 +0000 (11:03 +0800)
committerBen Pfaff <blp@ovn.org>
Wed, 18 Apr 2018 23:31:15 +0000 (16:31 -0700)
commit8e4e45887ec3eb5f5833fd7b415b63ff47fc9642
tree399e1d3396d15c9a4bebcce73c4c47549f0224fb
parent49b9cad34e8a122e4b2997f0a1a1707f5997737e
ofproto-dpif-xlate: makes OVS native tunneling honor tunnel-specified source addresses

It makes OVS native tunneling honor tunnel-specified source addresses,
in the same way that Linux kernel tunneling honors them.

This patch made valid tun_src specified by flow-action can be used for
tunnel_src of packet. add a "local" property for a route entry and enhance
the priority of local route higher than user route.
Like the kernel space when lookup the route, if there are tun_src specified
by flow-action or port options. Check the tun_src wheather is a local
address, then lookup the route.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: frank.zeng <frank.zeng@ucloud.cn>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ovs-router.c
lib/ovs-router.h
lib/route-table.c
ofproto/ofproto-dpif-sflow.c
ofproto/ofproto-dpif-xlate.c