[ovs-git] [openvswitch/ovs] 7a9907: dpif-netlink-rtnl: Fix ovs_geneve probing after re...

GitHub noreply at github.com
Thu Nov 2 21:43:59 UTC 2017


  Branch: refs/heads/branch-2.8
  Home:   https://github.com/openvswitch/ovs
  Commit: 7a9907f58fcc0f3ecf246e060641c1dac67587f1
      https://github.com/openvswitch/ovs/commit/7a9907f58fcc0f3ecf246e060641c1dac67587f1
  Author: William Tu <u9012063 at gmail.com>
  Date:   2017-11-02 (Thu, 02 Nov 2017)

  Changed paths:
    M lib/dpif-netlink-rtnl.c

  Log Message:
  -----------
  dpif-netlink-rtnl: Fix ovs_geneve probing after restart.

When using the out-of-tree (openvswitch compat) geneve module,
the first time oot tunnel probing returns true (correct).
Without unloading the geneve module, if the userspace ovs-vswitchd
restarts, because the 'geneve_sys_6081' still exists, the probing
incorrectly returns false and loads the in-tree (upstream kernel)
geneve module.

The patch fixes it by querying the geneve device's kind when exists.
The out-of-tree modules uses kind string as 'ovs_geneve', while the
in-tree module uses 'geneve'.  To reproduce the issue, start the ovs
> /etc/init.d/openvswitch-switch start
> creat a bridge and attach a geneve port using out-of-tree geneve
> /etc/init.d/openvswitch-switch restart

Fixes: 921c370a9df5 ("dpif-netlink: Probe for out-of-tree tunnels, decides used interface")
Signed-off-by: William Tu <u9012063 at gmail.com>
Acked-by: Eric Garver <e at erig.me>
Signed-off-by: Gurucharan Shetty <guru at ovn.org>




More information about the git mailing list