MCPcopy Create free account
hub / github.com/NetSys/bess / NextDrop

Method NextDrop

core/utils/codel.h:213–215  ·  view source on GitHub ↗

Takes the relative time to determine the next time to drop. returns the next time to drop a object.

Source from the content-addressed store, hash-verified

211 // Takes the relative time to determine the next time to drop.
212 // returns the next time to drop a object.
213 uint64_t NextDrop(uint64_t cur_time) {
214 return cur_time + window_ * pow(drop_count_, -.5);
215 }
216
217 // Gets the next object from the queue and determines based on current state,
218 // whether set the passed drop boolean to true(to tell the calling function to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected