X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=app%2Ftest-pmd%2Ftxonly.c;h=1ee2a91a26d8eb0756c97511ebf7b970e339bba6;hb=refs%2Ftags%2Fupstream%2F16.11.5;hp=8513a062061b5582cad14595f7dc04459664a846;hpb=47d9763a1dd3103d732da9eec350cfc1cd784717;p=deb_dpdk.git 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); }