Skip to content
Snippets Groups Projects
Commit ba4663bb authored by Saurav Das's avatar Saurav Das
Browse files

Adding a couple of counters to SwitchBase

parent 19d18082
No related branches found
No related tags found
No related merge requests found
......@@ -1304,9 +1304,11 @@ public abstract class OFSwitchBase implements IOFSwitch {
*/
@Override
public boolean inputThrottled(OFMessage ofm) {
ctrSwitch.updateCounterNoFlush();
if (ofm.getType() != OFType.PACKET_IN) {
return false;
}
ctrSwitchPktin.updateCounterNoFlush();
// Compute current packet in rate
messageCount++;
if (messageCount % 100 == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment