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

Method CommandSetBurst

core/modules/queue.cc:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203CommandResponse Queue::CommandSetBurst(
204 const bess::pb::QueueCommandSetBurstArg &arg) {
205 uint64_t burst = arg.burst();
206
207 if (burst > bess::PacketBatch::kMaxBurst) {
208 return CommandFailure(EINVAL, "burst size must be [0,%zu]",
209 bess::PacketBatch::kMaxBurst);
210 }
211
212 burst_ = burst;
213 return CommandSuccess();
214}
215
216CommandResponse Queue::SetSize(uint64_t size) {
217 if (size < 4 || size > 16384) {

Callers

nothing calls this directly

Calls 2

CommandFailureFunction · 0.85
CommandSuccessFunction · 0.85

Tested by

no test coverage detected