Signed-off-by: Thomas Monjalon <tho...@monjalon.net>
---
 lib/common/mbuf.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/common/mbuf.h b/lib/common/mbuf.h
index 0191b28..31bfa96 100644
--- a/lib/common/mbuf.h
+++ b/lib/common/mbuf.h
@@ -90,6 +90,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool,
                        rte_mbuf_refcnt_set(mbufs[idx], 1);
                        pktmbuf_reset(mbufs[idx]);
                        idx++;
+                       /* fall-through */
                case 3:
 #ifdef RTE_ASSERT
                        RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0);
@@ -99,6 +100,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool,
                        rte_mbuf_refcnt_set(mbufs[idx], 1);
                        pktmbuf_reset(mbufs[idx]);
                        idx++;
+                       /* fall-through */
                case 2:
 #ifdef RTE_ASSERT
                        RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0);
@@ -108,6 +110,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool,
                        rte_mbuf_refcnt_set(mbufs[idx], 1);
                        pktmbuf_reset(mbufs[idx]);
                        idx++;
+                       /* fall-through */
                case 1:
 #ifdef RTE_ASSERT
                        RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0);
-- 
2.13.2

Reply via email to