Rsocket : rsendto() fail


My card is ConnectX-5 EN and O/S is Ubuntu 22.04(64-bit). and installed “MLNX_OFED_LINUX-5.8-”.

I am trying to test rsocket functions included in “librdmacm”.
When I ran “rsendto”, a linux errno 2(“No such file or directory”) occurred. The “rsocket()” even succeeded and returned a file descriptor.
What I should do?

Here is my code.

int ret, sock, svrAddrSize;
uint8_t *pSnd = NULL;

ret = posix_memalign((void **)(&pSnd), 4096, 8192);
if (ret != 0) { return -1; }

svrAddr.sin_family = AF_INET;
svrAddr.sin_addr.s_addr = inet_addr(“”);
svrAddr.sin_port = htons(10000);

sock = rsocket(PF_INET, SOCK_DGRAM, 0);
if(sock < 0) { return -1; }

ret = rsendto(sock, pSnd, 8192, 0, (struct sockaddr *)&svrAddr, svrAddrSize);
if (ret < 0) {
printf(“Send FAIL, errno: %d\n”, errno); <=== error number 2 occurrs.


hi Choi

rsocket is not part of our SW.
I suggest you test rdmacm with ib_write_bw(use -R option) first.
If there’s no issue in ib_write_bw, it means there’s no issue in rdma part.
detail please follow the reference:

Thank you