This patch enables mbuf fast free Tx offloads from the command line. Signed-off-by: Shahaf Shuler <shah...@mellanox.com> --- app/test-pmd/parameters.c | 5 +++++ doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ 2 files changed, 9 insertions(+)
diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 8a68a39ea..cc18cb767 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -216,6 +216,8 @@ usage(char* progname) "requests flow API isolated mode on all ports at initialization time.\n"); printf(" --enable-multiseg: " "enables multi segment send Tx offload on all ports.\n"); + printf(" --enable-fast-free: " + "enables mbuf fast free Tx offload on all ports.\n"); } #ifdef RTE_LIBRTE_CMDLINE @@ -647,6 +649,7 @@ launch_args_parse(int argc, char** argv) { "print-event", 1, 0, 0 }, { "mask-event", 1, 0, 0 }, { "enable-multiseg", 0, 0, 0 }, + { "enable-fast-free", 0, 0, 0 }, { 0, 0, 0, 0 }, }; @@ -1122,6 +1125,8 @@ launch_args_parse(int argc, char** argv) } if (!strcmp(lgopts[opt_idx].name, "enable-multiseg")) tx_offloads |= DEV_TX_OFFLOAD_MULTI_SEGS; + if (!strcmp(lgopts[opt_idx].name, "enable-fast-free")) + tx_offloads |= DEV_TX_OFFLOAD_MBUF_FAST_FREE; break; case 'h': diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index b21a1fe8a..1311cce41 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -501,3 +501,7 @@ The commandline options are: * ``--enable-multiseg`` Enables multi segment send Tx offload on all ports. + +* ``--enable-fast-free`` + + Enables mbuf fast free Tx offload on all ports. -- 2.12.0