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
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
ring
/
rte_ring.c
diff --git
a/lib/ring/rte_ring.c
b/lib/ring/rte_ring.c
index
185f9be
..
6a94a03
100644
(file)
--- a/
lib/ring/rte_ring.c
+++ b/
lib/ring/rte_ring.c
@@
-75,7
+75,7
@@
rte_ring_get_memsize_elem(unsigned int esize, unsigned int count)
return -EINVAL;
}
- sz = sizeof(struct rte_ring) + count * esize;
+ sz = sizeof(struct rte_ring) +
(ssize_t)
count * esize;
sz = RTE_ALIGN(sz, RTE_CACHE_LINE_SIZE);
return sz;
}