[ovs-git] Open vSwitch: ofproto-dpif: Do not give stats to rules bypassed by "drop" frag policy. (branch-1.10)

dev at openvswitch.org dev at openvswitch.org
Wed Jun 5 17:41:25 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, branch-1.10 has been updated
       via  ef7a55a497d2737f06df18ceeecd171c25bcd06a (commit)
       via  ffcafe9bf5ffdd7a8885222d3009703eb4946a4c (commit)
      from  d1c38945c61c4262247a32ab86929eeb95645799 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ef7a55a497d2737f06df18ceeecd171c25bcd06a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=ef7a55a497d2737f06df18ceeecd171c25bcd06a
Author: Ben Pfaff <blp at nicira.com>
		
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 at gmail.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Ethan Jackson <ethan at nicira.com>


commit ffcafe9bf5ffdd7a8885222d3009703eb4946a4c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=ffcafe9bf5ffdd7a8885222d3009703eb4946a4c
Author: Jesse Gross <jesse at nicira.com>
		
ofproto-dpif: Don't count misses in OpenFlow table stats.
		
Originally no rule existed for packets that did not match an
OpenFlow flow and therefore every packet with a rule could be
counted as a hit. However, newer versions of OVS have hidden
miss rules so this is no longer true. To return the correct
table stats, this subtracts packets that hit the miss rule
from the total and removes the separate counter.

Reported-by: love you <thunder.love07 at gmail.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 ofproto/ofproto-dpif.c |   38 +++++++++++++++++++++++++-------------
 tests/ofproto-dpif.at  |    9 +++++++--
 2 files changed, 32 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list