X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=60cf5245ff25f9967514357229a2b5ffb0727d0f;hb=fd19297bb3d61789aa2a8871e3316b2a4e3e34c3;hp=b7b31b0228bffd0757d382609df7638a8097b8ee;hpb=e1154f713ec8f47ff38979d76e9456b49b0bc264;p=openvswitch diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index b7b31b02..60cf5245 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1367,6 +1367,9 @@ ofproto_port_unregister(struct ofproto *ofproto, uint16_t ofp_port) { struct ofport *port = ofproto_get_port(ofproto, ofp_port); if (port) { + if (port->ofproto->ofproto_class->set_stp_port) { + port->ofproto->ofproto_class->set_stp_port(port, NULL); + } if (port->ofproto->ofproto_class->set_cfm) { port->ofproto->ofproto_class->set_cfm(port, NULL); }