We missed calling netdev_close in a couple of places.  One was in an error
condition rarely hit.  The second was just introduced and would be hit in
all cases where QoS is not in use.

Fixes: dc2dab6e6de5 ("ovn-controller: Configure interface QoS only if it would 
actually be used.")
Signed-off-by: Russell Bryant <[email protected]>
---
 ovn/controller/binding.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ovn/controller/binding.c b/ovn/controller/binding.c
index 2d2da16..c90cb65 100644
--- a/ovn/controller/binding.c
+++ b/ovn/controller/binding.c
@@ -263,6 +263,7 @@ setup_qos(const char *egress_iface, struct hmap *queue_map)
     if (netdev_get_qos(netdev_phy, &qdisc_type, &qdisc_details) != 0 ||
         qdisc_type[0] == '\0') {
         smap_destroy(&qdisc_details);
+        netdev_close(netdev_phy);
         /* Qos is not supported. */
         return;
     }
@@ -286,6 +287,7 @@ setup_qos(const char *egress_iface, struct hmap *queue_map)
         if (!strcmp(qdisc_type, OVN_QOS_TYPE)) {
             set_qos_type(netdev_phy, "");
         }
+        netdev_close(netdev_phy);
         return;
     }
 
-- 
2.9.3

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to