From d64d1e6f3712a3034146e7f5ea5fecb7fcf0efc8 Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Mon, 16 Jul 2018 10:34:50 +0200 Subject: [PATCH] Implemented ib_reverse() The only value that gets reversed is src- and dst address. Fixes #175. --- lib/nodes/infiniband.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nodes/infiniband.c b/lib/nodes/infiniband.c index c7f90d405..eba638c9a 100644 --- a/lib/nodes/infiniband.c +++ b/lib/nodes/infiniband.c @@ -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; }