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:11:55 +0000 (10:11 -0700)
commit7fd51d39959d7e105e41b2ec64cce3839ac9b6f3
treea3e0d324c51630e923dcea64014fdca4c58c6d4b
parentf0ac9da9964da2c2c716f1c6c409e59c4cc6ef1d
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