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

Method Init

core/modules/bypass.cc:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include "bypass.h"
32
33CommandResponse Bypass::Init(const bess::pb::BypassArg &arg) {
34 cycles_per_batch_ = arg.cycles_per_batch();
35 cycles_per_packet_ = arg.cycles_per_packet();
36 cycles_per_byte_ = arg.cycles_per_byte();
37
38 return CommandSuccess();
39}
40
41void Bypass::ProcessBatch(Context *ctx, bess::PacketBatch *batch) {
42 uint64_t start_tsc = rdtsc();

Callers

nothing calls this directly

Calls 1

CommandSuccessFunction · 0.85

Tested by

no test coverage detected