test: fix TCP header initialization
authorLance Richardson <lance.richardson@broadcom.com>
Tue, 30 Mar 2021 13:23:28 +0000 (09:23 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Apr 2021 10:43:25 +0000 (12:43 +0200)
commit9fdba32788d4adbac196ba0bb9398ba8c2d0d4bc
tree02c2b2558356da964306079377241187b998914e
parentd2df6e2cc50154aa869dbf0a8e218c08ceac18e1
test: fix TCP header initialization

Initialize TCP data offset field with TCP header length, this
field is used to derive L4 header length and by hardware to
validate a TCP header.

Fixes: 41f72ec94074 ("test: add packet burst generator functions")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test/packet_burst_generator.c