portal_id string can pass the 16 chars thread name limit so
we can't use it.
Signed-off-by: Roi Dayan <roid@mellanox.com>
#ifndef XIO_PORTAL_H
#define XIO_PORTAL_H
+#include <string>
+
extern "C" {
#include "libxio.h"
}
}
for (p_ix = 0; p_ix < nportals; ++p_ix) {
+ string thread_name = "ms_xio_";
+ thread_name.append(std::to_string(p_ix));
portal = portals[p_ix];
- portal->create(portal->portal_id);
+ portal->create(thread_name.c_str());
}
}