From: Maciej Czekaj Date: Fri, 22 Apr 2016 14:51:18 +0000 (+0200) Subject: app/testpmd: add scatter enabling option X-Git-Tag: spdx-start~6798 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0499793854f52d0a42aa39a6b8036700f3719735;p=dpdk.git app/testpmd: add scatter enabling option This parameter allows for controlling rxmode.enable_scatter which in turn allow for multi-segment packet receive tests. Signed-off-by: Maciej Czekaj Acked-by: Pablo de Lara --- diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 55572ebe62..8792c2c63d 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -526,6 +526,7 @@ launch_args_parse(int argc, char** argv) { "pkt-filter-drop-queue", 1, 0, 0 }, { "crc-strip", 0, 0, 0 }, { "enable-rx-cksum", 0, 0, 0 }, + { "enable-scatter", 0, 0, 0 }, { "disable-hw-vlan", 0, 0, 0 }, { "disable-hw-vlan-filter", 0, 0, 0 }, { "disable-hw-vlan-strip", 0, 0, 0 }, @@ -764,6 +765,8 @@ launch_args_parse(int argc, char** argv) } if (!strcmp(lgopts[opt_idx].name, "crc-strip")) rx_mode.hw_strip_crc = 1; + if (!strcmp(lgopts[opt_idx].name, "enable-scatter")) + rx_mode.enable_scatter = 1; if (!strcmp(lgopts[opt_idx].name, "enable-rx-cksum")) rx_mode.hw_ip_checksum = 1; diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index f605564553..8fb0651505 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -289,6 +289,10 @@ The commandline options are: Enable hardware RX checksum offload. +* ``--enable-scatter`` + + Enable scatter (multi-segment) RX. + * ``--disable-hw-vlan`` Disable hardware VLAN.