[ovs-dev] [RFC PATCH 11/13] tunneling: ignore route cache for ipv6 tunnels

Jiri Benc jbenc at redhat.com
Thu May 14 18:12:42 UTC 2015


There's no route cache for ipv6, thus we cannot consult it when checking for
status change. It means we currently don't know the status of the outgoing
interface, this may be fixed later.

Signed-off-by: Jiri Benc <jbenc at redhat.com>
---
 lib/netdev-vport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c
index 6bcb844608a4..a9284908d548 100644
--- a/lib/netdev-vport.c
+++ b/lib/netdev-vport.c
@@ -323,7 +323,7 @@ tunnel_check_status_change__(struct netdev_vport *netdev)
 
     iface[0] = '\0';
     route = netdev->tnl_cfg.ip_dst;
-    if (ovs_router_lookup(route, iface, &gw)) {
+    if (route && ovs_router_lookup(route, iface, &gw)) {
         struct netdev *egress_netdev;
 
         if (!netdev_open(iface, "system", &egress_netdev)) {
-- 
1.8.3.1




More information about the dev mailing list