ofproto: Fix accounting in facet_revalidate().
authorBen Pfaff <blp@nicira.com>
Fri, 29 Oct 2010 23:33:08 +0000 (16:33 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 12 Nov 2010 22:46:04 +0000 (14:46 -0800)
commitd530fcd2425c2443c1a1c093903b6932c4c5814c
treed05931472a658345f8246f832ccafae09cc4b8db
parentbcf8411196260599d9b2a405627c1a867f43eb03
ofproto: Fix accounting in facet_revalidate().

When a facet moves from one rule to another, facet_revalidate() would
credit the packet and byte counters for the facet to the new rule (which
hasn't actually had any packets sent with the new actions at this point),
instead of to the old rule (which did potentially get some packets sent
with its old actions).  This commit fixes the problem.
ofproto/ofproto.c