summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@marvell.com>2019-04-09 09:45:47 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-04-12 11:02:02 +0200
commit1eab29b9b8bd7ec9556f77b40cd1ace41e961b17 (patch)
tree25a030c8a84a337cf778b1b695c30c5aa0a75f36 /app
parentbac46c6fefabaa9c5a28ff3b49a0b3c69154edb2 (diff)
downloaddpdk-1eab29b9b8bd7ec9556f77b40cd1ace41e961b17.zip
dpdk-1eab29b9b8bd7ec9556f77b40cd1ace41e961b17.tar.gz
dpdk-1eab29b9b8bd7ec9556f77b40cd1ace41e961b17.tar.xz
app/testpmd: fix packet headers in txonly mode
Fix ether header size calculation in Tx only mode. Coverity issue: 337684 Fixes: 01b645dcff7f ("app/testpmd: move txonly prepare in separate function") Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/txonly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c
index 66e6378..2d0e1a0 100644
--- a/app/test-pmd/txonly.c
+++ b/app/test-pmd/txonly.c
@@ -189,7 +189,7 @@ pkt_burst_prepare(struct rte_mbuf *pkt, struct rte_mempool *mbp,
/*
* Copy headers in first packet segment(s).
*/
- copy_buf_to_pkt(eth_hdr, sizeof(eth_hdr), pkt, 0);
+ copy_buf_to_pkt(eth_hdr, sizeof(*eth_hdr), pkt, 0);
copy_buf_to_pkt(&pkt_ip_hdr, sizeof(pkt_ip_hdr), pkt,
sizeof(struct ether_hdr));
if (txonly_multi_flow) {