Commit b51eeaab authored by Luciano Orsini's avatar Luciano Orsini Committed by Dainius Simelevicius
Browse files

references #73: remove debug printouts

parent 1ea1b840
......@@ -86,7 +86,7 @@ bool ibvla::Acceptor::process (toolbox::task::WorkLoop* wl)
sscanf(msg, "%x:%x:%x:%lx:%lx", &lid, &qpn, &psn, &gid.global.subnet_prefix, &gid.global.interface_id);
//sscanf(msg, "%x:%x:%x", &lid, &qpn, &psn);
std::cout << "DBG: Acceptor received : '" << msg << "\'\n";
//std::cout << "DBG: Acceptor received : '" << msg << "\'\n";
std::string ip;
ip = inet_ntoa(readAddr.sin_addr);
......@@ -257,8 +257,6 @@ void ibvla::Acceptor::accept (ibvla::ConnectionRequest &id, ibvla::QueuePair &qp
if ( is_global_)
{
// RoCE uses sgid_index_
std::cout << "DBG: Acceptor using GID index: " << sgid_index_ << '\n';
// For RoCE:
attr.ah_attr.is_global = 1;
attr.ah_attr.grh.dgid = id.remote_gid_;
......@@ -324,11 +322,7 @@ void ibvla::Acceptor::accept (ibvla::ConnectionRequest &id, ibvla::QueuePair &qp
if ( is_global_)
{
union ibv_gid gid = qp.pd_.context_.queryGID(qp_attr.port_num, sgid_index_);
sprintf(msg, "%04x:%06x:%06x:%016lx:%016lx", (p_att.lid + (unsigned int)ibPath_), qp.getNum(), attr.sq_psn, gid.global.subnet_prefix, gid.global.interface_id);
//sprintf(msg, "%04x:%06x:%06x", (p_att.lid + (unsigned int)ibPath_), qp.getNum(), attr.sq_psn);
std::cout << "DBG: Acceptor send : '" << msg << "\'\n";
}
else
{
......
......@@ -121,20 +121,12 @@ void ibvla::Connector::connect (ibvla::QueuePair &qp, const std::string & destna
{
// RoCE uses sgid_index_
union ibv_gid gid = qp.pd_.context_.queryGID(qp_attr.port_num, sgid_index_);
std::cout << "DBG: Connector using GID index: " << sgid_index_ << '\n';
sprintf(msg, "%04x:%06x:%06x:%016lx:%016lx", (p_att.lid + (unsigned int)path), qp.getNum(), psn, gid.global.subnet_prefix, gid.global.interface_id);
std::cout << "DBG: Connector send : '" << msg << "\'\n";
}
else
{
sprintf(msg, "%04x:%06x:%06x:%016lx:%016lx", (p_att.lid + (unsigned int)path), qp.getNum(), psn, (long unsigned int)0, (long unsigned int)0);
}
//sprintf(msg, "%04x:%06x:%06x", (p_att.lid + (unsigned int)path), qp.getNum(), psn);
//std::cout << "Sending connection info to remote address, lid='" << p_att.lid << "', qpn='" << qp.getNum() << "', psn='" << psn << "', msg='" << msg << std::endl;
if (write(sockfd, msg, sizeof msg) != sizeof msg)
......@@ -165,8 +157,6 @@ void ibvla::Connector::connect (ibvla::QueuePair &qp, const std::string & destna
close(sockfd);
std::cout << "DBG: Connector received: '" << msg << "\'\n";
ibv_qp_attr attr;
memset(&attr, 0, sizeof(attr));
......@@ -174,7 +164,6 @@ void ibvla::Connector::connect (ibvla::QueuePair &qp, const std::string & destna
union ibv_gid r_gid;
sscanf(msg, "%x:%x:%x:%lx:%lx", &r_lid, &r_qpn, &r_psn, &r_gid.global.subnet_prefix, &r_gid.global.interface_id);
//sscanf(msg, "%x:%x:%x", &r_lid, &r_qpn, &r_psn);
//std::cout << "Received connection info from remote address, lid='" << r_lid << "', qpn='" << r_qpn << "', psn='" << r_psn << "', msg='" << msg << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment