summaryrefslogtreecommitdiff
path: root/lib/ofp-print.c
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2015-06-12 16:12:56 -0700
committerJarno Rajahalme <jrajahalme@nicira.com>2015-06-12 16:12:56 -0700
commitf695ebfae56c981332b9030b9ed905f90de8b0c5 (patch)
treee9ead8945a00e864ae6296b3c79376eb7ec3eff4 /lib/ofp-print.c
parent18721c4a4d49416a0c63ca985988b000fc48f217 (diff)
downloadopenvswitch-f695ebfae56c981332b9030b9ed905f90de8b0c5.tar.gz
ofproto: Postpone sending flow removed messages.
The final flow stats are available only after there are no references to the rule. Postpone sending the flow removed message until the final stats are available. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/ofp-print.c')
-rw-r--r--lib/ofp-print.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c
index 96e65a7e7..2ac11b1ea 100644
--- a/lib/ofp-print.c
+++ b/lib/ofp-print.c
@@ -865,6 +865,7 @@ ofp_flow_removed_reason_to_string(enum ofp_flow_removed_reason reason,
return "eviction";
case OFPRR_METER_DELETE:
return "meter_delete";
+ case OVS_OFPRR_NONE:
default:
snprintf(reasonbuf, bufsize, "%d", (int) reason);
return reasonbuf;