ofproto-dpif: Do not give stats to rules bypassed by "drop" frag policy.
authorBen Pfaff <blp@nicira.com>
Wed, 5 Jun 2013 17:11:55 +0000 (10:11 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Jun 2013 17:36:01 +0000 (10:36 -0700)
commit7d3ad71e72eeffb9216fe1bfdaa504eb0e2e66e9
tree333aabfaad8bdc74fe03bfcf91b1d0462427c58e
parent6d164b21fa3d72e03bede3bdfe3b673f8fe8bdd0
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