ofproto: Maintain "expirable" list for "add" flow_mod with replaced rule.
authorBen Pfaff <blp@nicira.com>
Sat, 26 Jan 2013 01:26:42 +0000 (17:26 -0800)
committerBen Pfaff <blp@nicira.com>
Sat, 26 Jan 2013 01:26:42 +0000 (17:26 -0800)
commitd6e95e998a37a98c70dc7e91a4765c777dbc66cb
tree000e763eb30c82de35af1e7a702c928df2dcd3d2
parent644e2a7cbd7043a88322177173606f675e55e7d7
ofproto: Maintain "expirable" list for "add" flow_mod with replaced rule.

Commit e503cc199 (ofproto: Optimise OpenFlow flow expiry) optimized
OpenFlow flow expiration by putting expirable flows on a list, but it
failed to remove flows from the list when they were replaced by a new
flow with an OpenFlow flow_mod "add" operation.  This commit fixes the
problem.

Found by valgrind.

CC: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c