app/testpmd: enable TCP/IPv4 GRO
authorJiayu Hu <jiayu.hu@intel.com>
Sun, 9 Jul 2017 05:46:46 +0000 (13:46 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 9 Jul 2017 16:15:05 +0000 (18:15 +0200)
commitb40f8d782ba18e97ca4270823320dfe3242d8684
treefd1c8ce173821ee8d818f1b7774f17f9d4190bde
parent0d2cbe59b719a1f9d728d26622905e15ec6ff471
app/testpmd: enable TCP/IPv4 GRO

This patch enables TCP/IPv4 GRO library in csum forwarding engine.
By default, GRO is turned off. Users can use command "gro (on|off)
(port_id)" to enable or disable GRO for a given port. If a port is
enabled GRO, all TCP/IPv4 packets received from the port are performed
GRO. Besides, users can set max flow number and packets number per-flow
by command "gro set (max_flow_num) (max_item_num_per_flow) (port_id)".

Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Jingjing Wu <jingjing.wu@intel.com>
Tested-by: Lei Yao <lei.a.yao@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/csumonly.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
doc/guides/testpmd_app_ug/testpmd_funcs.rst