mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Added better handling for FLUSH_ERRs of receive work queue
This commit is contained in:
parent
8f52d167f5
commit
86363f06da
1 changed files with 10 additions and 2 deletions
|
@ -744,10 +744,18 @@ int ib_read(struct node *n, struct sample *smps[], unsigned cnt)
|
|||
|
||||
for(int i=0; i<ret; i++)
|
||||
{
|
||||
if(wc[i].status != IBV_WC_SUCCESS)
|
||||
if(wc[i].status == IBV_WC_WR_FLUSH_ERR)
|
||||
{
|
||||
//ToDo: create debug entry
|
||||
ret = 0;
|
||||
}
|
||||
else if(wc[i].status != IBV_WC_SUCCESS)
|
||||
{
|
||||
warn("Work Completion status was not IBV_WC_SUCCES in node %s: %i",
|
||||
node_name(n), wc[i].status);
|
||||
else if(wc[i].opcode & IBV_WC_RECV && wc[i].status != IBV_WC_WR_FLUSH_ERR)
|
||||
ret = 0;
|
||||
}
|
||||
else if(wc[i].opcode & IBV_WC_RECV)
|
||||
{
|
||||
smps[i] = (struct sample*)(wc[i].wr_id);
|
||||
smps[i]->length = wc[i].byte_len/sizeof(double);
|
||||
|
|
Loading…
Add table
Reference in a new issue