app/testpmd: fix L4 length for UDP checksum
authorRaslan Darawsheh <rasland@mellanox.com>
Sun, 11 Nov 2018 15:31:37 +0000 (15:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit2b5651c026d8d1a687a8f7a210b1b8f13f906911
tree9a32edf2b336579065737be759bb3bf21748d169
parent69d3e963e446be9c8d98638223589e8cdf44dd9e
app/testpmd: fix L4 length for UDP checksum

testpmd only sets the L4 len in case of TCP packets.
some PMD's like tap rely on mbuf meta data to calculate csum

This will set the L4 len for UDP packets same as TCP

Fixes: 160c3dc9458c ("app/testpmd: introduce IP parsing functions in csum fwd engine")
CC: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/csumonly.c