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

references #73: support for configurable sgid_index in XML </Endpoint>

parent 3d6510a5
......@@ -269,7 +269,7 @@ pt::TransportType pt::ibv::PeerTransport::getType ()
//
pt::Address::Reference pt::ibv::PeerTransport::createAddress (const std::string& url, const std::string& service)
{
return pt::Address::Reference(new pt::ibv::Address(url, service, 1, 0)); // 1 == default IB port number, 0 = default src_path_bits
return pt::Address::Reference(new pt::ibv::Address(url, service, 1, 0, 3)); // 1 == default IB port number, 0 = default src_path_bits, 3 = default sgid_index
}
pt::Address::Reference pt::ibv::PeerTransport::createAddress (std::map<std::string, std::string, std::less<std::string> >& address)
......@@ -322,7 +322,7 @@ pt::Address::Reference pt::ibv::PeerTransport::createAddress (std::map<std::stri
//return this->createAddress(url, service, ibport);
size_t ibPortNum = toolbox::toUnsignedLong(ibport);
size_t ibPath = toolbox::toUnsignedLong(path);
int sgidindex = toolbox::toUnsignedInt(ssgidindex);
int sgidindex = toolbox::toLong(ssgidindex);
return pt::Address::Reference(new pt::ibv::Address(url, service, ibPortNum, ibPath, sgidindex));
}
else
......
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