X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-dpif-xlate.c;h=e5556036b2d97a9eb3a0ea132bedcb0b9290837b;hb=d017eeb9f9ebcb46c24a67fd301b3e36cd26a04e;hp=eb4ed695797a8d72dcc993efbf44bf129250c1fe;hpb=3815d6c2cdc8d6ccf1f726b2bde9965374a8301c;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index eb4ed6957..e5556036b 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -400,7 +400,10 @@ xlate_ofport_remove(struct ofport_dpif *ofport) xport->peer = NULL; } - list_remove(&xport->bundle_node); + if (xport->xbundle) { + list_remove(&xport->bundle_node); + } + hmap_remove(&xports, &xport->hmap_node); hmap_remove(&xport->xbridge->xports, &xport->ofp_node);