summaryrefslogtreecommitdiffstats
path: root/app/test-pmd/txonly.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/test-pmd/txonly.c')
-rw-r--r--app/test-pmd/txonly.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c
index 8513a062..1ee2a91a 100644
--- a/app/test-pmd/txonly.c
+++ b/app/test-pmd/txonly.c
@@ -106,6 +106,7 @@ copy_buf_to_pkt_segs(void* buf, unsigned len, struct rte_mbuf *pkt,
buf = ((char*) buf + copy_len);
seg = seg->next;
seg_buf = rte_pktmbuf_mtod(seg, char *);
+ copy_len = seg->data_len;
}
rte_memcpy(seg_buf, buf, (size_t) len);
}