[dpdk-dev,pktgen,4/6] fix compilation with gcc 7
Checks
Commit Message
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
lib/common/mbuf.h | 3 +++
1 file changed, 3 insertions(+)
@@ -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);