summaryrefslogtreecommitdiff
path: root/app/test/test_mbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/test/test_mbuf.c')
-rw-r--r--app/test/test_mbuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c
index 2a97afe..aafad0c 100644
--- a/app/test/test_mbuf.c
+++ b/app/test/test_mbuf.c
@@ -332,8 +332,11 @@ testclone_testupdate_testdetach(struct rte_mempool *pktmbuf_pool)
m->next = rte_pktmbuf_alloc(pktmbuf_pool);
if (m->next == NULL)
GOTO_FAIL("Next Pkt Null\n");
+ m->nb_segs = 2;
rte_pktmbuf_append(m->next, sizeof(uint32_t));
+ m->pkt_len = 2 * sizeof(uint32_t);
+
data = rte_pktmbuf_mtod(m->next, unaligned_uint32_t *);
*data = MAGIC_DATA;