]> git.proxmox.com Git - ovs.git/commit - AUTHORS.rst
ovs-router: Fix flushing of local routes.
authorIlya Maximets <i.maximets@ovn.org>
Tue, 21 Jul 2020 12:47:32 +0000 (14:47 +0200)
committerWilliam Tu <u9012063@gmail.com>
Tue, 21 Jul 2020 13:23:49 +0000 (06:23 -0700)
commit9e11517e6ca6814c8927cea78df98503890a21e2
tree7f9b0d09b70f1b48f1ab248a5d33f8a996842179
parent9cfb1d0f7d65b52cc8f14d05c9e9ea8b64f90773
ovs-router: Fix flushing of local routes.

Since commit 8e4e45887ec3, priority of 'local' route entries no
longer matches with 'plen'.  This should be taken into account
while flushing cached routes, otherwise they will remain in OVS
even after removing them from the system:

  # ifconfig eth0 11.0.0.1
  # ovs-appctl ovs/route/show
    --- A new route synchronized from kernel route table ---
    Cached: 11.0.0.1/32 dev eth0 SRC 11.0.0.1 local
  # ifconfig eth0 0
  # ovs-appctl ovs/route/show
    -- the new route entry is still in ovs route table ---
    Cached: 11.0.0.1/32 dev eth0 SRC 11.0.0.1 local

CC: wenxu <wenxu@ucloud.cn>
Fixes: 8e4e45887ec3 ("ofproto-dpif-xlate: makes OVS native tunneling honor tunnel-specified source addresses")
Reported-by: Zheng Jingzhou <glovejmm@163.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2020-July/373093.html
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: William Tu <u9012063@gmail.com>
AUTHORS.rst
lib/ovs-router.c
tests/automake.mk
tests/system-route.at [new file with mode: 0644]
tests/system-userspace-testsuite.at