| 31 | #include "noop.h" |
| 32 | |
| 33 | CommandResponse 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 | |
| 43 | struct task_result NoOP::RunTask(Context *, bess::PacketBatch *, void *) { |
| 44 | return {.block = false, .packets = 0, .bits = 0}; |
nothing calls this directly
no test coverage detected