[ovs-git] [openvswitch/ovs] 5d7a08: ovs-router: Fix flushing of local routes.

Ilya Maximets noreply at github.com
Tue Jul 21 15:13:11 UTC 2020


  Branch: refs/heads/branch-2.11
  Home:   https://github.com/openvswitch/ovs
  Commit: 5d7a08db86232623589b76c8ddb0f184646d40a1
      https://github.com/openvswitch/ovs/commit/5d7a08db86232623589b76c8ddb0f184646d40a1
  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