summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDilshod Urazov <dilshod.urazov@oktetlabs.ru>2019-07-04 11:03:31 +0100
committerJerin Jacob <jerinj@marvell.com>2019-07-07 13:24:12 +0200
commit0e2132445930a6fc70f99a9306f76f7001eefb49 (patch)
treea84435bcd981ea0ded2061506acec7098041426b
parent468d4c4e202f5653809231aa2d6d6935dd012da0 (diff)
downloaddpdk-0e2132445930a6fc70f99a9306f76f7001eefb49.zip
dpdk-0e2132445930a6fc70f99a9306f76f7001eefb49.tar.gz
dpdk-0e2132445930a6fc70f99a9306f76f7001eefb49.tar.xz
event/sw: fix error sign
Fixes: 371a688fc159 ("event/sw: support linking queues to ports") Cc: stable@dpdk.org Signed-off-by: Dilshod Urazov <dilshod.urazov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
-rw-r--r--drivers/event/sw/sw_evdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c
index 1175d6c..fb8e8be 100644
--- a/drivers/event/sw/sw_evdev.c
+++ b/drivers/event/sw/sw_evdev.c
@@ -38,12 +38,12 @@ sw_port_link(struct rte_eventdev *dev, void *port, const uint8_t queues[],
/* check for qid map overflow */
if (q->cq_num_mapped_cqs >= RTE_DIM(q->cq_map)) {
- rte_errno = -EDQUOT;
+ rte_errno = EDQUOT;
break;
}
if (p->is_directed && p->num_qids_mapped > 0) {
- rte_errno = -EDQUOT;
+ rte_errno = EDQUOT;
break;
}
@@ -59,12 +59,12 @@ sw_port_link(struct rte_eventdev *dev, void *port, const uint8_t queues[],
if (q->type == SW_SCHED_TYPE_DIRECT) {
/* check directed qids only map to one port */
if (p->num_qids_mapped > 0) {
- rte_errno = -EDQUOT;
+ rte_errno = EDQUOT;
break;
}
/* check port only takes a directed flow */
if (num > 1) {
- rte_errno = -EDQUOT;
+ rte_errno = EDQUOT;
break;
}