app/testpmd: add csum parse-tunnel command
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 13 Feb 2015 09:22:39 +0000 (10:22 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 Feb 2015 18:21:18 +0000 (19:21 +0100)
commit64fc36064dc339b4299c44174176711cab0fc6bc
tree4c693ab05655105ef4dc06b5de47f7a7e7478099
parent75032511f30c2f19dd2123dc06c00e5caf548934
app/testpmd: add csum parse-tunnel command

Add a new command related to csum forward engine:

  csum parse-tunnel (on|off) (tx_port_id)

If enabled, the tunnel packets received by the csum forward engine are
parsed and seen as "outer-headers/inner-headers/data".

If disabled, the parsing of the csum forward engine stops at the first
l4 layer. A tunnel packet is seens as "headers/data" (inner headers are
included in payload).

Note: the port argument is the tx_port. It's more coherent compared
to all other testpmd csum flags.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/csumonly.c
app/test-pmd/testpmd.h