X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-dpif-governor.h;h=6dbd0d578b7ce9c4882489699785ce9ba1e8ae89;hb=31f4bd47171c8ec48cf5c315053f3070b37d0234;hp=ad022d5e82c77b26d036bda727e79cbe8758f2b1;hpb=9d6ac44e2b584b34bc7e14f2daa7bb0bdfab16ab;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-dpif-governor.h b/ofproto/ofproto-dpif-governor.h index ad022d5e8..6dbd0d578 100644 --- a/ofproto/ofproto-dpif-governor.h +++ b/ofproto/ofproto-dpif-governor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012 Nicira Networks. + * Copyright (c) 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,6 +38,11 @@ struct governor { unsigned int size; /* Table size in bytes. */ long long int start; /* Time when the table was last cleared. */ unsigned int n_packets; /* Number of packets processed. */ + + /* Statistics for skipping counters when most flows get set up. */ + unsigned int n_flows; /* Number of unique flows seen. */ + unsigned int n_setups; /* Number of flows set up based on counters. */ + unsigned int n_shortcuts; /* Number of flows set up based on history. */ }; struct governor *governor_create(const char *name);