app/testpmd: fix NVGRE encap configuration
authorJiawei Wang <jiaweiw@nvidia.com>
Tue, 16 Mar 2021 04:18:27 +0000 (06:18 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Mar 2021 13:54:16 +0000 (14:54 +0100)
commit9b0da816bdec98c0d6c5d17ccdd337bdbafc3f75
treed73e160d6f48c17495ba132aefd184b1fdd29331
parent63e05f19b82bb83c47950c03b1f9746e1707e81b
app/testpmd: fix NVGRE encap configuration

For NVGRE protocol, the default value of 'c_k_s_rsvd0_ver'
must be 0x2000, and protocol type must be 0x6558 in the NVGRE
header.

This patch updates these two configurations while parsing the nvgre
encap.

Fixes: dcd962fc6b4e ("app/testpmd: add NVGRE encap/decap")
Cc: stable@dpdk.org
Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
app/test-pmd/cmdline_flow.c