Fixes:
0bf298e39286 ("event/opdl: add event port config get/set")
Fixes:
3c7f3dcfb099 ("event/opdl: add PMD main body and helper function")
Fixes:
4236ce9bf5bf ("event/opdl: add OPDL ring infrastructure library")
Cc: stable@dpdk.org
Signed-off-by: Dilshod Urazov <dilshod.urazov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
dev->data->dev_id,
queues[0],
p->id);
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
dev->data->dev_id,
num,
p->id);
- rte_errno = -EDQUOT;
+ rte_errno = EDQUOT;
return 0;
}
dev->data->dev_id,
p->id,
queues[0]);
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
p->id,
p->external_qid,
queues[0]);
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
dev->data->dev_id,
queues[0],
p->id);
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
RTE_SET_USED(nb_unlinks);
p->id,
ev[i].queue_id,
p->next_external_qid);
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
}
} else {
if (num > 0 &&
ev[0].queue_id != p->next_external_qid) {
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
}
RTE_SET_USED(ev);
RTE_SET_USED(num);
- rte_errno = -ENOSPC;
+ rte_errno = ENOSPC;
return 0;
}
if (enqueued < num)
- rte_errno = -ENOSPC;
+ rte_errno = ENOSPC;
return enqueued;
}
RTE_SET_USED(ev);
RTE_SET_USED(num);
- rte_errno = -ENOSPC;
+ rte_errno = ENOSPC;
return 0;
}
"Attempt to dequeue num of events larger than port (%d) max",
opdl_pmd_dev_id(p->opdl),
p->id);
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
opdl_stage_disclaim(struct opdl_stage *s, uint32_t num_entries, bool block)
{
if (num_entries != s->num_event) {
- rte_errno = -EINVAL;
+ rte_errno = EINVAL;
return 0;
}
if (s->threadsafe == false) {