mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Fixed two minor bugs in Infiniband node
This commit is contained in:
parent
6296d4217e
commit
427d715279
1 changed files with 3 additions and 3 deletions
|
@ -326,7 +326,7 @@ int ib_parse(struct node *n, json_t *cfg)
|
|||
|
||||
// Set remaining QP attributes
|
||||
ib->qp_init.cap.max_send_sge = 4;
|
||||
ib->qp_init.cap.max_recv_sge = (ib->conn.port_space == RDMA_PS_UDP) ? 4 : 5;
|
||||
ib->qp_init.cap.max_recv_sge = (ib->conn.port_space == RDMA_PS_UDP) ? 5 : 4;
|
||||
|
||||
// Set number of bytes to be send inline
|
||||
ib->qp_init.cap.max_inline_data = max_inline_data;
|
||||
|
@ -850,9 +850,9 @@ int ib_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *rele
|
|||
|
||||
debug(LOG_IB | 10, "ib_write is called");
|
||||
|
||||
*release = 0;
|
||||
|
||||
if (n->state == STATE_CONNECTED) {
|
||||
*release = 0;
|
||||
|
||||
// First, write
|
||||
|
||||
// Get Memory Region
|
||||
|
|
Loading…
Add table
Reference in a new issue