ofproto: Add extra comments and checking for expiring a pending rule.
[openvswitch] / ofproto / ofproto-dpif.c
index 2451d44d7d8c3ad3cb6e329b5e803e9733e43301..5265d7bc6e8c005ccf4514013c34a5daec4ac59c 100644 (file)
@@ -3562,6 +3562,11 @@ rule_expire(struct rule_dpif *rule)
     long long int now;
     uint8_t reason;
 
+    if (rule->up.pending) {
+        /* We'll have to expire it later. */
+        return;
+    }
+
     /* Has 'rule' expired? */
     now = time_msec();
     if (rule->up.hard_timeout