[ovs-git] [openvswitch/ovs] 9e1151: ovs-router: Fix flushing of local routes.

Ilya Maximets noreply at github.com
Tue Jul 21 15:05:46 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 9e11517e6ca6814c8927cea78df98503890a21e2
      https://github.com/openvswitch/ovs/commit/9e11517e6ca6814c8927cea78df98503890a21e2
  Author: Ilya Maximets <i.maximets at ovn.org>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M AUTHORS.rst
    M lib/ovs-router.c
    M tests/automake.mk
    A tests/system-route.at
    M tests/system-userspace-testsuite.at

  Log Message:
  -----------
  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 at ucloud.cn>
Fixes: 8e4e45887ec3 ("ofproto-dpif-xlate: makes OVS native tunneling honor tunnel-specified source addresses")
Reported-by: Zheng Jingzhou <glovejmm at 163.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2020-July/373093.html
Acked-by: William Tu <u9012063 at gmail.com>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
Signed-off-by: William Tu <u9012063 at gmail.com>




More information about the git mailing list