app/testpmd: add commands for packet type mapping
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 12 Apr 2017 13:55:34 +0000 (09:55 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
commit156a31b5eeafd9f990db76cb8948b38f3f27b503
tree3a6b5ad4728ed0c6455a27f0df7cd1a7fc0eae61
parent62e94f7f66fbead1abfc7674bf963d6875c1d029
app/testpmd: add commands for packet type mapping

Add below command line to configure ptype mapping.
ptype mapping get <port_id> <valid_only>.
ptype mapping replace <port_id> <target> <mask> <pkt_type>.
ptype mapping reset <port_id>.
ptype mapping update <port_id> <hw_ptype> <sw_ptype>.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
app/test-pmd/cmdline.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst