X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto-dpif-governor.h;h=6dbd0d578b7ce9c4882489699785ce9ba1e8ae89;hb=b546a4f73828e30186e2e5423eb70ed7f2347306;hp=31cf4a21d9e397de93c21cacfada7a273d10e0a3;hpb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;p=openvswitch diff --git a/ofproto/ofproto-dpif-governor.h b/ofproto/ofproto-dpif-governor.h index 31cf4a21..6dbd0d57 100644 --- a/ofproto/ofproto-dpif-governor.h +++ b/ofproto/ofproto-dpif-governor.h @@ -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);