app/testpmd: cleanup tunnel protocols parsing
authorOphir Munk <ophirmu@mellanox.com>
Thu, 8 Oct 2020 20:16:56 +0000 (20:16 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:18:47 +0000 (19:18 +0200)
commitdf655504e33b5e66ad21df4b33fd6eea00a624fe
tree15df4f44fcf46e3e6da618e6c70ab9401ad4b6d5
parent2f60c649b1d85f01ddb9c803e5a81608e2892a20
app/testpmd: cleanup tunnel protocols parsing

This is a cleanup commit.
It assembles all tunnel outer updates into one function call to avoid
code duplications.
It defines RTE_VXLAN_GPE_DEFAULT_PORT (4790) in accordance with all
other tunnel protocol definitions.
It replaces all numeric values 4789 in their corresponding definition
RTE_VXLAN_GPE_DEFAULT_PORT.
It updates the 'csum parse-tunnel' documentation.

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_flow.c
app/test-pmd/csumonly.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst
lib/librte_net/rte_vxlan.h