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

Function is_valid_gate

core/modules/random_split.cc:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include <time.h>
35
36static inline bool is_valid_gate(gate_idx_t gate) {
37 return (gate < MAX_GATES || gate == DROP_GATE);
38}
39
40const Commands RandomSplit::cmds = {
41 {"set_droprate", "RandomSplitCommandSetDroprateArg",

Callers 2

InitMethod · 0.70
CommandSetGatesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected