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:37:20 +0000 (10:37 -0700)
commitef7a55a497d2737f06df18ceeecd171c25bcd06a
tree913ccebf54d9d49eb89cf6992ddfe3ebeb9693af
parentffcafe9bf5ffdd7a8885222d3009703eb4946a4c
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