X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=app%2Ftest-pmd%2Ftxonly.c;fp=app%2Ftest-pmd%2Ftxonly.c;h=8513a062061b5582cad14595f7dc04459664a846;hb=6b3e017e5d25f15da73f7700f7f2ac553ef1a2e9;hp=11fd681da1e673c879ce3949bd89ede5635f768f;hpb=32e04ea00cd159613e04acef75e52bfca6eeff2f;p=deb_dpdk.git diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c index 11fd681d..8513a062 100644 --- a/app/test-pmd/txonly.c +++ b/app/test-pmd/txonly.c @@ -56,7 +56,6 @@ #include #include #include -#include #include #include #include @@ -223,6 +222,14 @@ pkt_burst_transmit(struct fwd_stream *fs) return; break; } + + /* + * Using raw alloc is good to improve performance, + * but some consumers may use the headroom and so + * decrement data_off. We need to make sure it is + * reset to default value. + */ + rte_pktmbuf_reset_headroom(pkt); pkt->data_len = tx_pkt_seg_lengths[0]; pkt_seg = pkt; if (tx_pkt_split == TX_PKT_SPLIT_RND)