this fixes ofp_port_status delivery on a patch port removal.
Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
lib/dpif.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/dpif.c b/lib/dpif.c
index 02cc36a..ece5dc0 100644
--- a/lib/dpif.c
+++ b/lib/dpif.c
@@ -536,6 +536,9 @@ dpif_port_del(struct dpif *dpif, odp_port_t port_no)
COVERAGE_INC(dpif_port_del);
+ if (port_no == ODPP_NONE) {
+ return 0;
+ }
error = dpif->dpif_class->port_del(dpif, port_no);
if (!error) {
VLOG_DBG_RL(&dpmsg_rl, "%s: port_del(%"PRIu32")",
--
1.8.3.1
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev