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:
parent
eb55dee920
commit
d64d1e6f37
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue