Skip to content

Commit

Permalink
Merge "Agent init in DPDK is dependent on asio thread." into R3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 6, 2016
2 parents f065c78 + 3908057 commit f088e5e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 deletions src/vnsw/agent/contrail/main.cc
Expand Up @@ -111,12 +111,8 @@ int main(int argc, char *argv[]) {
return ret;
}

// Wait till Init is done, before running event manager
init.Lock();

Agent *agent = init.agent();
agent->event_manager()->RunWithExceptionHandling();

init.Unlock();
return 0;
}
5 changes: 0 additions & 5 deletions src/vnsw/agent/init/agent_init.cc
Expand Up @@ -89,9 +89,6 @@ void AgentInit::InitPlatform() {
// Start of Agent init.
// Trigger init in DBTable task context
int AgentInit::Start() {
// lock till init is done
Lock();

agent_->set_task_scheduler(TaskScheduler::GetInstance());

// Init platform specific information
Expand Down Expand Up @@ -160,8 +157,6 @@ bool AgentInit::InitBase() {
agent_->set_init_done(true);
ConnectToControllerBase();

// Init is done
Unlock();
return ret;
}

Expand Down
5 changes: 0 additions & 5 deletions src/vnsw/agent/init/agent_init.h
Expand Up @@ -71,11 +71,6 @@ class AgentInit {
virtual void RegisterDBClientsBase();
virtual void RegisterDBClients() { }

// Blocking call to get init mutex;
// Used to synchronize event manager execution with init completion
virtual void Lock() { init_mutex_.lock(); }
virtual void Unlock() { init_mutex_.unlock(); }

// Module specific inits. Called after DBTable and DBTable clients are
// created
virtual void InitModulesBase();
Expand Down
4 changes: 0 additions & 4 deletions src/vnsw/agent/ovs_tor_agent/main.cc
Expand Up @@ -77,11 +77,7 @@ int main(int argc, char *argv[]) {
return ret;
}

// Wait till Init is done, before running event manager
init.Lock();

agent->event_manager()->RunWithExceptionHandling();

init.Unlock();
return 0;
}
4 changes: 0 additions & 4 deletions src/vnsw/agent/vxlan_agent/linux/main.cc
Expand Up @@ -82,11 +82,7 @@ int main(int argc, char *argv[]) {
return ret;
}

// Wait till Init is done, before running event manager
init.Lock();

agent->event_manager()->RunWithExceptionHandling();

init.Unlock();
return 0;
}

0 comments on commit f088e5e

Please sign in to comment.