[ovs-dev] [PATCH] ofproto-dpif: Don't configure BFD on missing ofports.

Ethan Jackson ethan at nicira.com
Tue May 21 02:10:02 UTC 2013


This was causing ovs-vswitchd to core occasionally, even when BFD
wasn't turned on.

Bug #17162.
Signed-off-by: Ethan Jackson <ethan at nicira.com>
---
 ofproto/ofproto.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 28df181..ca1dc89 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -812,6 +812,7 @@ ofproto_port_set_bfd(struct ofproto *ofproto, uint16_t ofp_port,
     if (!ofport) {
         VLOG_WARN("%s: cannot configure bfd on nonexistent port %"PRIu16,
                   ofproto->name, ofp_port);
+        return;
     }
 
     error = (ofproto->ofproto_class->set_bfd
-- 
1.7.9.5




More information about the dev mailing list