From fc5512881c0fd9022c80882ae479e69edd1af058 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 8 Jul 2016 14:52:01 -0300 Subject: [PATCH] netdev-vport: don't use system type when opening netdev tunnel_check_status_change__ calls netdev_open with type system. Using NULL instead will default to system in case the device is not opened yet, and allow a different type in case it's already opened. Any type should be fine, as netdev_get_carrier will work with any of them. Signed-off-by: Thadeu Lima de Souza Cascardo --- 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 83a795ccb..87a30f829 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -274,7 +274,7 @@ tunnel_check_status_change__(struct netdev_vport *netdev) if (ovs_router_lookup(route, iface, NULL, &gw)) { struct netdev *egress_netdev; - if (!netdev_open(iface, "system", &egress_netdev)) { + if (!netdev_open(iface, NULL, &egress_netdev)) { status = netdev_get_carrier(egress_netdev); netdev_close(egress_netdev); } -- 2.20.1