ofproto-dpif: Expire fin_timeout actions when no previous timeout set.
authorJustin Pettit <jpettit@nicira.com>
Wed, 17 Jul 2013 06:05:10 +0000 (23:05 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 17 Jul 2013 21:05:42 +0000 (14:05 -0700)
commit2a5183ac07277f7a57052fd6d082523011339521
tree93fc751796f7ef581ac9fa11399fad641ed34a70
parente93ab5531c808c63a7ac4a12739530982ba0eaeb
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-xlate.c