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

Method ResetTcs

core/bessctl.cc:613–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611 }
612
613 Status ResetTcs(ServerContext*, const EmptyRequest*,
614 EmptyResponse* response) override {
615 std::lock_guard<std::recursive_mutex> lock(mutex_);
616
617 WorkerPauser wp;
618
619 if (!TrafficClassBuilder::ClearAll()) {
620 return return_with_error(response, EBUSY, "TCs still have tasks");
621 }
622
623 return Status::OK;
624 }
625
626 Status ListTcs(ServerContext*, const ListTcsRequest* request,
627 ListTcsResponse* response) override {

Callers

nothing calls this directly

Calls 1

return_with_errorFunction · 0.85

Tested by

no test coverage detected