Commit 1dcb2c20 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

dist/net_rdma: fix shm allocation calculation for n2d queues.

Used d2n values before. (worked because these are symmetric in the cases
I've tested so far)
parent 645e0d2f
......@@ -234,7 +234,7 @@ int PeerNetSetupQueues(struct Peer *peer) {
fprintf(stderr, "PeerNetSetupQueues: ShmAlloc d2n failed");
return 1;
}
if (ShmAlloc(di->d2n_elen * di->n2d_nentries, &di->n2d_offset)) {
if (ShmAlloc(di->n2d_elen * di->n2d_nentries, &di->n2d_offset)) {
fprintf(stderr, "PeerNetSetupQueues: ShmAlloc n2d failed");
return 1;
}
......
Markdown is supported
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