X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=switch%2Ftable.h;h=37b91413fb48ae99ad3a8aa11f730e562d9e8aaa;hb=034f125955a786ed35052da688e77d6fc2422def;hp=aacaa63fd280ee118c876e5cdac2e0eb5b5aeb4c;hpb=801b972cf292feaa991a826d80737104778df89b;p=openvswitch diff --git a/switch/table.h b/switch/table.h index aacaa63f..37b91413 100644 --- a/switch/table.h +++ b/switch/table.h @@ -51,6 +51,7 @@ struct sw_table_stats { supported by the table. */ unsigned int n_flows; /* Number of active flows. */ unsigned int max_flows; /* Flow capacity. */ + unsigned long int n_lookup; /* Number of packets looked up. */ unsigned long int n_matched; /* Number of packets that have hit. */ }; @@ -64,10 +65,11 @@ struct sw_table_position { /* A single table of flows. */ struct sw_table { - /* Keep track of the number of packets that matched this table. To - * make this 100% accurate, it should be atomic. However, we're - * primarily concerned about speed. */ - unsigned long int n_matched; + /* The number of packets that have been looked up and matched, + * respecitvely. To make these 100% accurate, they should be atomic. + * However, we're primarily concerned about speed. */ + unsigned long long n_lookup; + unsigned long long n_matched; /* Searches 'table' for a flow matching 'key', which must not have any * wildcard fields. Returns the flow if successful, a null pointer