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_ring.c
diff --git
a/drivers/event/opdl/opdl_ring.c
b/drivers/event/opdl/opdl_ring.c
index
8aca481
..
e8b29e2
100644
(file)
--- a/
drivers/event/opdl/opdl_ring.c
+++ b/
drivers/event/opdl/opdl_ring.c
@@
-7,6
+7,7
@@
#include <stdint.h>
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
+#include <rte_string_fns.h>
#include <rte_branch_prediction.h>
#include <rte_debug.h>
#include <rte_lcore.h>
#include <rte_branch_prediction.h>
#include <rte_debug.h>
#include <rte_lcore.h>
@@
-755,7
+756,7
@@
int
opdl_stage_disclaim(struct opdl_stage *s, uint32_t num_entries, bool block)
{
if (num_entries != s->num_event) {
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) {
return 0;
}
if (s->threadsafe == false) {
@@
-944,7
+945,7
@@
opdl_ring_create(const char *name, uint32_t num_slots, uint32_t slot_size,
/* Initialise opdl_ring queue */
memset(t, 0, sizeof(*t));
/* Initialise opdl_ring queue */
memset(t, 0, sizeof(*t));
- s
nprintf(t->name, sizeof(t->name), "%s", name
);
+ s
trlcpy(t->name, name, sizeof(t->name)
);
t->socket = socket;
t->num_slots = num_slots;
t->mask = num_slots - 1;
t->socket = socket;
t->num_slots = num_slots;
t->mask = num_slots - 1;