]> git.droids-corp.org - dpdk.git/commit
app/testpmd: fix GTP header parsing in checksum engine
authorGregory Etelson <getelson@nvidia.com>
Sun, 13 Mar 2022 09:01:23 +0000 (11:01 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 Mar 2022 20:50:47 +0000 (21:50 +0100)
commita058de216ceb6581dac213d7a37d9fb9fad05a9b
tree824ab8950ae95c9f928b27db83f60e16b4b77753
parent5aae2723cddba81b179162b5e7e4f6bd429eaac5
app/testpmd: fix GTP header parsing in checksum engine

GTP header can be followed by an optional 32 bits extension.
GTP notifies about the extension presence through the E, S or PN
header bits.

Csum GTP header parser did not check the extension bits value.

The patch updates GTP header length if at-least one of the
extension bits is set.

Fixes: d8e5e69f3a9b ("app/testpmd: add GTP parsing and Tx checksum offload")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
app/test-pmd/csumonly.c