ofproto: Update rule's priority in eviction group.
authorkmindg <kmindg@gmail.com>
Sun, 9 Mar 2014 09:48:04 +0000 (17:48 +0800)
committerBen Pfaff <blp@nicira.com>
Wed, 12 Mar 2014 05:32:20 +0000 (22:32 -0700)
commit6d56c1f19fe9facea0eabc4a39ad01cfc8d7971d
tree8db534fd6294c0d353afc7e03f65f4ec38edea95
parentc76f25b5bc5b9856a2fa243bc48e4e5763029f4f
ofproto: Update rule's priority in eviction group.

We do call heap_rebuild in ofproto_run, but we do not update rule's
priority with latest hard_timeout and idle_timeout before heap_rebuild.

This patch ensures that rule's priority has been updated before
heap_rebuild, and adds two test cases to check eviction with modified
hard_timeout and idle_timwout.

Signed-off-by: kmindg <kmindg@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c
tests/ofproto.at