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

Method ImportPlugin

core/bessctl.cc:1676–1687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1674 }
1675
1676 Status ImportPlugin(ServerContext*, const ImportPluginRequest* request,
1677 EmptyResponse* response) override {
1678 std::lock_guard<std::recursive_mutex> lock(mutex_);
1679
1680 WorkerPauser wp;
1681 VLOG(1) << "Loading plugin: " << request->path();
1682 if (!bess::bessd::LoadPlugin(request->path())) {
1683 return return_with_error(response, -1, "Failed loading plugin %s",
1684 request->path().c_str());
1685 }
1686 return Status::OK;
1687 }
1688
1689 Status UnloadPlugin(ServerContext*, const UnloadPluginRequest* request,
1690 EmptyResponse* response) override {

Callers

nothing calls this directly

Calls 2

LoadPluginFunction · 0.85
return_with_errorFunction · 0.85

Tested by

no test coverage detected