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

Method Init

core/modules/noop.cc:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include "noop.h"
32
33CommandResponse NoOP::Init(const bess::pb::EmptyArg &) {
34 task_id_t tid;
35
36 tid = RegisterTask(nullptr);
37 if (tid == INVALID_TASK_ID)
38 return CommandFailure(ENOMEM, "Context creation failed");
39
40 return CommandSuccess();
41}
42
43struct task_result NoOP::RunTask(Context *, bess::PacketBatch *, void *) {
44 return {.block = false, .packets = 0, .bits = 0};

Callers

nothing calls this directly

Calls 2

CommandFailureFunction · 0.85
CommandSuccessFunction · 0.85

Tested by

no test coverage detected