ofproto-dpif: Expire fin_timeout actions when no previous timeout set.
authorJustin Pettit <jpettit@nicira.com>
Wed, 17 Jul 2013 21:22:28 +0000 (14:22 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 17 Jul 2013 21:22:28 +0000 (14:22 -0700)
commit1cf2aa3598a40298e642fcfd8cd649fc674386a4
treeb6fa0cf3f29a27f0a4ccbf174471132e86598edc
parent61dafbfbdb58b1bfe51e089381c874e55f2d529a
ofproto-dpif: Expire fin_timeout actions when no previous timeout set.

Commit e503cc199 (ofproto: Optimise OpenFlow flow expiry) optimized
OpenFlow flow expiration by putting expirable flows on a list.  However,
the list is only configured at rule creation time.  If the rule is
created without a timeout, but is later set by the fin_timeout action,
it will never expire.  This commit adds the rule to the list when the
action is triggered.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c