ofproto-dpif: Do not give stats to rules bypassed by "drop" frag policy.
authorBen Pfaff <blp@nicira.com>
Wed, 5 Jun 2013 17:49:56 +0000 (10:49 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Jun 2013 17:49:56 +0000 (10:49 -0700)
commite0bf39844610663e3fe76b96a31dff39e024cd2d
treed0c284adef6800807f824a6b37ea84f6529630fa
parent8c504f843c32b2f55f7f65dbc6d3ad7f2d401d8d
ofproto-dpif: Do not give stats to rules bypassed by "drop" frag policy.

When the OFPC_FRAG_DROP policy is in effect, IP fragments are supposed to
be dropped before they reach the flow table.  Open vSwitch properly dropped
IP fragments in this case, but still accounted them to the packet and byte
counters for the flow that they would have hit if the OFPC_FRAG_NX_MATCh
policy had been in effect.

Reported-by: love you <thunder.love07@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c
tests/ofproto-dpif.at
tests/ofproto.at