ofproto: Iterate through exact-match rules first during expiration.
authorBen Pfaff <blp@nicira.com>
Wed, 29 Sep 2010 20:04:03 +0000 (13:04 -0700)
committerJustin Pettit <jpettit@nicira.com>
Sat, 9 Oct 2010 00:18:37 +0000 (17:18 -0700)
commiteabc4fc41952e9d4b979ba137d15d9b7ab791959
tree9ca93d78253cf8e2f557848096391328920eedb8
parent7163da861e2c7c3115118680361eeaa80c036f59
ofproto: Iterate through exact-match rules first during expiration.

A wildcarded flow is idle only if all of its subrules have expired because
they were idle, so unless we expire exact-match rules first it is possible
that a wildcarded flow fails to expire as soon as it should.

(The current implementation of classifier_for_each() iterates through
exact-match rules before wildcarded rules, but nothing in the interface
guarantees that.)
ofproto/ofproto.c