ofproto: Add extra comments and checking for expiring a pending rule.
[openvswitch] / ofproto / ofproto.c
index 90cf343bb40c8c4f0af3a0eacc6b886dbd81fc8e..93401919e00d554a373fd4e1e20e1ea6704d9ff5 100644 (file)
@@ -3128,6 +3128,9 @@ ofproto_rule_update_used(struct rule *rule, long long int used)
  * OFPRR_HARD_TIMEOUT or OFPRR_IDLE_TIMEOUT), and then removes 'rule' from its
  * ofproto.
  *
+ * 'rule' must not have a pending operation (that is, 'rule->pending' must be
+ * NULL).
+ *
  * ofproto implementation ->run() functions should use this function to expire
  * OpenFlow flows. */
 void