1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Implemented ib_reverse()

The only value that gets reversed is src- and dst address. Fixes #175.
This commit is contained in:
Dennis Potter 2018-07-16 10:34:50 +02:00
parent eb55dee920
commit d64d1e6f37

View file

@ -236,6 +236,10 @@ static int ib_connect_request(struct node *n, struct rdma_cm_id *id)
int ib_reverse(struct node *n)
{
struct infiniband *ib = (struct infiniband *) n->_vd;
SWAP(ib->conn.src_addr, ib->conn.dst_addr);
return 0;
}