| 201 | } |
| 202 | |
| 203 | CommandResponse 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 | |
| 216 | CommandResponse Queue::SetSize(uint64_t size) { |
| 217 | if (size < 4 || size > 16384) { |
nothing calls this directly
no test coverage detected