| 31 | #include "bypass.h" |
| 32 | |
| 33 | CommandResponse 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 | |
| 41 | void Bypass::ProcessBatch(Context *ctx, bess::PacketBatch *batch) { |
| 42 | uint64_t start_tsc = rdtsc(); |
nothing calls this directly
no test coverage detected