X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=93401919e00d554a373fd4e1e20e1ea6704d9ff5;hb=e2a3d183f60b93265c095ede1379194916444822;hp=90cf343bb40c8c4f0af3a0eacc6b886dbd81fc8e;hpb=080437614b40799853a42806fa29e7c71f42210d;p=openvswitch diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 90cf343b..93401919 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -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