The ports which are attached mrouters or hosts, were destroyed by users via ovs-vsctl commands. Currently the vswitch will segfault if users use "ovs-appctl mdb/show" to show mdb info. This patch avoids a segfault.
or ofputil_port_to_string(ofbundle_get_a_port(bundle)->up.ofp_port, Signed-off-by: nickcooper-zhangtonghao <n...@opencloud.tech> --- ofproto/ofproto-dpif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 366b7a2..1e1b107 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -2756,6 +2756,7 @@ bundle_destroy(struct ofbundle *bundle) } bundle_flush_macs(bundle, true); + mcast_snooping_flush_bundle(ofproto->ms, bundle); hmap_remove(&ofproto->bundles, &bundle->hmap_node); free(bundle->name); free(bundle->trunks); -- 1.8.3.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev