ofproto: Fix effective memory leak for uninstallable flows.
authorBen Pfaff <blp@nicira.com>
Thu, 30 Sep 2010 17:13:47 +0000 (10:13 -0700)
committerJustin Pettit <jpettit@nicira.com>
Sat, 9 Oct 2010 00:18:37 +0000 (17:18 -0700)
commit0652e3433ced5ec2f1d77487fd53dca831186beb
tree5ccad1af1e2f1b08ed5679f17bcb00ab4a42a7cc
parentbef90330c13461066d50a11268d8d3f0466cb186
ofproto: Fix effective memory leak for uninstallable flows.

In one or two corner cases, flows cannot be installed because every packet
in the flow must be processed by userspace.  The code to expire rules was
ignoring these uninstallable rules, and thus they would never get freed,
even after they became idle.  This commit fixes the problem.
ofproto/ofproto.c