On 05/14/2018 12:54 AM, Thomas Monjalon wrote:
12/05/2018 03:59, Andy Green:
@@ -836,8 +836,9 @@ rte_mbuf_refcnt_update(struct rte_mbuf *m, int16_t value)
* reference counter can occur.
*/
if (likely(rte_mbuf_refcnt_read(m) == 1)) {
- rte_mbuf_refcnt_set
12/05/2018 03:59, Andy Green:
> @@ -836,8 +836,9 @@ rte_mbuf_refcnt_update(struct rte_mbuf *m, int16_t value)
>* reference counter can occur.
>*/
> if (likely(rte_mbuf_refcnt_read(m) == 1)) {
> - rte_mbuf_refcnt_set(m, 1 + value);
> - return 1 + value;
Signed-off-by: Andy Green
---
lib/librte_mbuf/rte_mbuf.h | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 4fd9a0d9e..a2a37a311 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@
3 matches
Mail list logo