git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: replace external mbuf shared memory
[dpdk.git]
/
drivers
/
event
/
opdl
/
opdl_evdev.c
diff --git
a/drivers/event/opdl/opdl_evdev.c
b/drivers/event/opdl/opdl_evdev.c
index
a4f0bc8
..
3beca89
100644
(file)
--- a/
drivers/event/opdl/opdl_evdev.c
+++ b/
drivers/event/opdl/opdl_evdev.c
@@
-102,7
+102,7
@@
opdl_port_link(struct rte_eventdev *dev,
dev->data->dev_id,
queues[0],
p->id);
dev->data->dev_id,
queues[0],
p->id);
- rte_errno =
-
EINVAL;
+ rte_errno = EINVAL;
return 0;
}
return 0;
}
@@
-113,7
+113,7
@@
opdl_port_link(struct rte_eventdev *dev,
dev->data->dev_id,
num,
p->id);
dev->data->dev_id,
num,
p->id);
- rte_errno =
-
EDQUOT;
+ rte_errno = EDQUOT;
return 0;
}
return 0;
}
@@
-123,7
+123,7
@@
opdl_port_link(struct rte_eventdev *dev,
dev->data->dev_id,
p->id,
queues[0]);
dev->data->dev_id,
p->id,
queues[0]);
- rte_errno =
-
EINVAL;
+ rte_errno = EINVAL;
return 0;
}
return 0;
}
@@
-134,7
+134,7
@@
opdl_port_link(struct rte_eventdev *dev,
p->id,
p->external_qid,
queues[0]);
p->id,
p->external_qid,
queues[0]);
- rte_errno =
-
EINVAL;
+ rte_errno = EINVAL;
return 0;
}
return 0;
}
@@
-160,7
+160,7
@@
opdl_port_unlink(struct rte_eventdev *dev,
dev->data->dev_id,
queues[0],
p->id);
dev->data->dev_id,
queues[0],
p->id);
- rte_errno =
-
EINVAL;
+ rte_errno = EINVAL;
return 0;
}
RTE_SET_USED(nb_unlinks);
return 0;
}
RTE_SET_USED(nb_unlinks);
@@
-422,16
+422,17
@@
opdl_dump(struct rte_eventdev *dev, FILE *f)
else
p_type = "????";
else
p_type = "????";
- sprintf(queue_id, "%02u", port->external_qid);
+ snprintf(queue_id, sizeof(queue_id), "%02u",
+ port->external_qid);
if (port->p_type == OPDL_REGULAR_PORT ||
port->p_type == OPDL_ASYNC_PORT)
if (port->p_type == OPDL_REGULAR_PORT ||
port->p_type == OPDL_ASYNC_PORT)
- s
printf(total_cyc
,
+ s
nprintf(total_cyc, sizeof(total_cyc)
,
" %'16"PRIu64"",
(cpg != 0 ?
port->port_stat[total_cycles] / cpg
: 0));
else
" %'16"PRIu64"",
(cpg != 0 ?
port->port_stat[total_cycles] / cpg
: 0));
else
- s
printf(total_cyc
,
+ s
nprintf(total_cyc, sizeof(total_cyc)
,
" ----");
fprintf(f,
"%4s %10u %8u %9s %'16"PRIu64" %'16"PRIu64" %s "
" ----");
fprintf(f,
"%4s %10u %8u %9s %'16"PRIu64" %'16"PRIu64" %s "