1
0
Fork 0
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:
Dennis Potter 2018-07-04 15:37:25 +02:00
parent 8f52d167f5
commit 86363f06da

View file

@ -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);