15630257fSFerruh Yigit.. SPDX-License-Identifier: BSD-3-Clause 25630257fSFerruh Yigit Copyright(c) 2010-2014 Intel Corporation. 3ac718398SBernard Iremonger 4ac718398SBernard IremongerRunning the Application 5ac718398SBernard Iremonger======================= 6ac718398SBernard Iremonger 7ac718398SBernard IremongerEAL Command-line Options 8ac718398SBernard Iremonger------------------------ 9ac718398SBernard Iremonger 103ee567cfSAnatoly BurakovPlease refer to :doc:`../linux_gsg/linux_eal_parameters` or 113ee567cfSAnatoly Burakov:doc:`../freebsd_gsg/freebsd_eal_parameters` for a list of available EAL 123ee567cfSAnatoly Burakovcommand-line options. 13075b182bSEric Zhang 14ac718398SBernard Iremonger 15ac718398SBernard IremongerTestpmd Command-line Options 16ac718398SBernard Iremonger---------------------------- 17ac718398SBernard Iremonger 18ac718398SBernard IremongerThe following are the command-line options for the testpmd applications. 19e76d7a76SJohn McNamaraThey must be separated from the EAL options, shown in the previous section, with a ``--`` separator: 20ac718398SBernard Iremonger 21ac718398SBernard Iremonger.. code-block:: console 22ac718398SBernard Iremonger 2335b09d76SKeith Wiles sudo ./testpmd -l 0-3 -n 4 -- -i --portmask=0x1 --nb-cores=2 24ac718398SBernard Iremonger 25e76d7a76SJohn McNamaraThe command line options are: 26e76d7a76SJohn McNamara 27e76d7a76SJohn McNamara* ``-i, --interactive`` 28ac718398SBernard Iremonger 29ac718398SBernard Iremonger Run testpmd in interactive mode. 30ac718398SBernard Iremonger In this mode, the testpmd starts with a prompt that can be used to start and stop forwarding, 31ac718398SBernard Iremonger configure the application and display stats on the current packet processing session. 32e76d7a76SJohn McNamara See :ref:`testpmd_runtime` for more details. 33ac718398SBernard Iremonger 34ac718398SBernard Iremonger In non-interactive mode, 35ac718398SBernard Iremonger the application starts with the configuration specified on the command-line and 36ac718398SBernard Iremonger immediately enters forwarding mode. 37ac718398SBernard Iremonger 38e76d7a76SJohn McNamara* ``-h, --help`` 39ac718398SBernard Iremonger 40ac718398SBernard Iremonger Display a help message and quit. 41ac718398SBernard Iremonger 42e76d7a76SJohn McNamara* ``-a, --auto-start`` 43ac718398SBernard Iremonger 44e76d7a76SJohn McNamara Start forwarding on initialization. 45ac718398SBernard Iremonger 4699cabef0SPablo de Lara* ``--tx-first`` 4799cabef0SPablo de Lara 4899cabef0SPablo de Lara Start forwarding, after sending a burst of packets first. 4999cabef0SPablo de Lara 5099cabef0SPablo de Lara.. Note:: 5199cabef0SPablo de Lara 5299cabef0SPablo de Lara This flag should be only used in non-interactive mode. 5399cabef0SPablo de Lara 54cfea1f30SPablo de Lara* ``--stats-period PERIOD`` 55cfea1f30SPablo de Lara 56cfea1f30SPablo de Lara Display statistics every PERIOD seconds, if interactive mode is disabled. 57cfea1f30SPablo de Lara The default value is 0, which means that the statistics will not be displayed. 58cfea1f30SPablo de Lara 59e76d7a76SJohn McNamara* ``--nb-cores=N`` 60ac718398SBernard Iremonger 61ac718398SBernard Iremonger Set the number of forwarding cores, 62e76d7a76SJohn McNamara where 1 <= N <= "number of cores" or ``CONFIG_RTE_MAX_LCORE`` from the configuration file. 63ac718398SBernard Iremonger The default value is 1. 64ac718398SBernard Iremonger 65e76d7a76SJohn McNamara* ``--nb-ports=N`` 66ac718398SBernard Iremonger 67ac718398SBernard Iremonger Set the number of forwarding ports, 68e76d7a76SJohn McNamara where 1 <= N <= "number of ports" on the board or ``CONFIG_RTE_MAX_ETHPORTS`` from the configuration file. 69ac718398SBernard Iremonger The default value is the number of ports on the board. 70ac718398SBernard Iremonger 71e76d7a76SJohn McNamara* ``--coremask=0xXX`` 72ac718398SBernard Iremonger 73ac718398SBernard Iremonger Set the hexadecimal bitmask of the cores running the packet forwarding test. 74ac718398SBernard Iremonger The master lcore is reserved for command line parsing only and cannot be masked on for packet forwarding. 75ac718398SBernard Iremonger 76e76d7a76SJohn McNamara* ``--portmask=0xXX`` 77ac718398SBernard Iremonger 78ac718398SBernard Iremonger Set the hexadecimal bitmask of the ports used by the packet forwarding test. 79ac718398SBernard Iremonger 80e76d7a76SJohn McNamara* ``--numa`` 81ac718398SBernard Iremonger 82999b2ee0SBruce Richardson Enable NUMA-aware allocation of RX/TX rings and of RX memory buffers 83999b2ee0SBruce Richardson (mbufs). [Default setting] 84999b2ee0SBruce Richardson 85999b2ee0SBruce Richardson* ``--no-numa`` 86999b2ee0SBruce Richardson 87999b2ee0SBruce Richardson Disable NUMA-aware allocation of RX/TX rings and of RX memory buffers (mbufs). 88ac718398SBernard Iremonger 89e76d7a76SJohn McNamara* ``--port-numa-config=(port,socket)[,(port,socket)]`` 90ac718398SBernard Iremonger 91ac718398SBernard Iremonger Specify the socket on which the memory pool to be used by the port will be allocated. 92ac718398SBernard Iremonger 93e76d7a76SJohn McNamara* ``--ring-numa-config=(port,flag,socket)[,(port,flag,socket)]`` 94ac718398SBernard Iremonger 95ac718398SBernard Iremonger Specify the socket on which the TX/RX rings for the port will be allocated. 96ac718398SBernard Iremonger Where flag is 1 for RX, 2 for TX, and 3 for RX and TX. 97ac718398SBernard Iremonger 98e76d7a76SJohn McNamara* ``--socket-num=N`` 99ac718398SBernard Iremonger 100ac718398SBernard Iremonger Set the socket from which all memory is allocated in NUMA mode, 101ac718398SBernard Iremonger where 0 <= N < number of sockets on the board. 102ac718398SBernard Iremonger 103e76d7a76SJohn McNamara* ``--mbuf-size=N`` 104ac718398SBernard Iremonger 105ac718398SBernard Iremonger Set the data size of the mbufs used to N bytes, where N < 65536. The default value is 2048. 106ac718398SBernard Iremonger 107e76d7a76SJohn McNamara* ``--total-num-mbufs=N`` 108ac718398SBernard Iremonger 109ac718398SBernard Iremonger Set the number of mbufs to be allocated in the mbuf pools, where N > 1024. 110ac718398SBernard Iremonger 111e76d7a76SJohn McNamara* ``--max-pkt-len=N`` 112ac718398SBernard Iremonger 113ac718398SBernard Iremonger Set the maximum packet size to N bytes, where N >= 64. The default value is 1518. 114ac718398SBernard Iremonger 115e76d7a76SJohn McNamara* ``--eth-peers-configfile=name`` 116ac718398SBernard Iremonger 117ac718398SBernard Iremonger Use a configuration file containing the Ethernet addresses of the peer ports. 118e76d7a76SJohn McNamara The configuration file should contain the Ethernet addresses on separate lines:: 119ac718398SBernard Iremonger 120ac718398SBernard Iremonger XX:XX:XX:XX:XX:01 121ac718398SBernard Iremonger XX:XX:XX:XX:XX:02 122ac718398SBernard Iremonger ... 123ac718398SBernard Iremonger 124e76d7a76SJohn McNamara* ``--eth-peer=N,XX:XX:XX:XX:XX:XX`` 125ac718398SBernard Iremonger 126e76d7a76SJohn McNamara Set the MAC address ``XX:XX:XX:XX:XX:XX`` of the peer port N, 127e76d7a76SJohn McNamara where 0 <= N < ``CONFIG_RTE_MAX_ETHPORTS`` from the configuration file. 128ac718398SBernard Iremonger 129bf5b2126SStephen Hemminger* ``--tx-ip=SRC,DST`` 130bf5b2126SStephen Hemminger 131bf5b2126SStephen Hemminger Set the source and destination IP address used when doing transmit only test. 132bf5b2126SStephen Hemminger The defaults address values are source 192.18.0.1 and 133bf5b2126SStephen Hemminger destination 192.18.0.2. These are special purpose addresses 134bf5b2126SStephen Hemminger reserved for benchmarking (RFC 2544). 135bf5b2126SStephen Hemminger 136bf5b2126SStephen Hemminger* ``--tx-udp=SRC[,DST]`` 137bf5b2126SStephen Hemminger 138bf5b2126SStephen Hemminger Set the source and destination UDP port number for transmit test only test. 139bf5b2126SStephen Hemminger The default port is the port 9 which is defined for the discard protocol 140bf5b2126SStephen Hemminger (RFC 863). 141bf5b2126SStephen Hemminger 142e76d7a76SJohn McNamara* ``--pkt-filter-mode=mode`` 143ac718398SBernard Iremonger 144e76d7a76SJohn McNamara Set Flow Director mode where mode is either ``none`` (the default), ``signature`` or ``perfect``. 145e76d7a76SJohn McNamara See :ref:`testpmd_flow_director` for more details. 146ac718398SBernard Iremonger 147e76d7a76SJohn McNamara* ``--pkt-filter-report-hash=mode`` 148ac718398SBernard Iremonger 149e76d7a76SJohn McNamara Set Flow Director hash match reporting mode where mode is ``none``, ``match`` (the default) or ``always``. 150e76d7a76SJohn McNamara 151e76d7a76SJohn McNamara* ``--pkt-filter-size=N`` 152ac718398SBernard Iremonger 153ac718398SBernard Iremonger Set Flow Director allocated memory size, where N is 64K, 128K or 256K. 154ac718398SBernard Iremonger Sizes are in kilobytes. The default is 64. 155ac718398SBernard Iremonger 156e76d7a76SJohn McNamara* ``--pkt-filter-flexbytes-offset=N`` 157ac718398SBernard Iremonger 158ac718398SBernard Iremonger Set the flexbytes offset. 159ac718398SBernard Iremonger The offset is defined in words (not bytes) counted from the first byte of the destination Ethernet MAC address, 160ac718398SBernard Iremonger where N is 0 <= N <= 32. 161ac718398SBernard Iremonger The default value is 0x6. 162ac718398SBernard Iremonger 163e76d7a76SJohn McNamara* ``--pkt-filter-drop-queue=N`` 164ac718398SBernard Iremonger 165ac718398SBernard Iremonger Set the drop-queue. 166ac718398SBernard Iremonger In perfect filter mode, when a rule is added with queue = -1, the packet will be enqueued into the RX drop-queue. 167ac718398SBernard Iremonger If the drop-queue does not exist, the packet is dropped. The default value is N=127. 168ac718398SBernard Iremonger 16979dd163fSJeff Guo* ``--disable-crc-strip`` 170ac718398SBernard Iremonger 17179dd163fSJeff Guo Disable hardware CRC stripping. 172ac718398SBernard Iremonger 1734c3ea508SOlivier Matz* ``--enable-lro`` 1744c3ea508SOlivier Matz 1754c3ea508SOlivier Matz Enable large receive offload. 1764c3ea508SOlivier Matz 177e76d7a76SJohn McNamara* ``--enable-rx-cksum`` 178ac718398SBernard Iremonger 179ac718398SBernard Iremonger Enable hardware RX checksum offload. 180ac718398SBernard Iremonger 18104997938SMaciej Czekaj* ``--enable-scatter`` 18204997938SMaciej Czekaj 18304997938SMaciej Czekaj Enable scatter (multi-segment) RX. 18404997938SMaciej Czekaj 1858b9bd0efSMoti Haimovsky* ``--enable-hw-vlan`` 186ac718398SBernard Iremonger 1878b9bd0efSMoti Haimovsky Enable hardware VLAN. 188ac718398SBernard Iremonger 1898b9bd0efSMoti Haimovsky* ``--enable-hw-vlan-filter`` 190f2552cd5SOuyang Changchun 1918b9bd0efSMoti Haimovsky Enable hardware VLAN filter. 192f2552cd5SOuyang Changchun 1938b9bd0efSMoti Haimovsky* ``--enable-hw-vlan-strip`` 194f2552cd5SOuyang Changchun 1958b9bd0efSMoti Haimovsky Enable hardware VLAN strip. 196f2552cd5SOuyang Changchun 1978b9bd0efSMoti Haimovsky* ``--enable-hw-vlan-extend`` 198f2552cd5SOuyang Changchun 1998b9bd0efSMoti Haimovsky Enable hardware VLAN extend. 200f2552cd5SOuyang Changchun 201e76d7a76SJohn McNamara* ``--enable-drop-en`` 202ac718398SBernard Iremonger 203ac718398SBernard Iremonger Enable per-queue packet drop for packets with no descriptors. 204ac718398SBernard Iremonger 205e76d7a76SJohn McNamara* ``--disable-rss`` 206ac718398SBernard Iremonger 207ac718398SBernard Iremonger Disable RSS (Receive Side Scaling). 208ac718398SBernard Iremonger 209e76d7a76SJohn McNamara* ``--port-topology=mode`` 210ac718398SBernard Iremonger 21148670ed6SRami Rosen Set port topology, where mode is ``paired`` (the default), ``chained`` or ``loop``. 212e76d7a76SJohn McNamara 213e76d7a76SJohn McNamara In ``paired`` mode, the forwarding is between pairs of ports, for example: (0,1), (2,3), (4,5). 214e76d7a76SJohn McNamara 215e76d7a76SJohn McNamara In ``chained`` mode, the forwarding is to the next available port in the port mask, for example: (0,1), (1,2), (2,0). 216e76d7a76SJohn McNamara 217ac718398SBernard Iremonger The ordering of the ports can be changed using the portlist testpmd runtime function. 218ac718398SBernard Iremonger 21948670ed6SRami Rosen In ``loop`` mode, ingress traffic is simply transmitted back on the same interface. 22048670ed6SRami Rosen 221e76d7a76SJohn McNamara* ``--forward-mode=mode`` 222ac718398SBernard Iremonger 223e76d7a76SJohn McNamara Set the forwarding mode where ``mode`` is one of the following:: 224ac718398SBernard Iremonger 225e76d7a76SJohn McNamara io (the default) 226e76d7a76SJohn McNamara mac 227153ccd05SYong Wang macswap 228e76d7a76SJohn McNamara flowgen 229e76d7a76SJohn McNamara rxonly 230e76d7a76SJohn McNamara txonly 231e76d7a76SJohn McNamara csum 232e76d7a76SJohn McNamara icmpecho 233e76d7a76SJohn McNamara ieee1588 2345b590fbeSJasvinder Singh tm 2353c156061SJens Freimann noisy 236e76d7a76SJohn McNamara 237e76d7a76SJohn McNamara* ``--rss-ip`` 238ac718398SBernard Iremonger 239ac718398SBernard Iremonger Set RSS functions for IPv4/IPv6 only. 240ac718398SBernard Iremonger 241e76d7a76SJohn McNamara* ``--rss-udp`` 242ac718398SBernard Iremonger 243ac718398SBernard Iremonger Set RSS functions for IPv4/IPv6 and UDP. 244ac718398SBernard Iremonger 245e76d7a76SJohn McNamara* ``--rxq=N`` 246ac718398SBernard Iremonger 247ac718398SBernard Iremonger Set the number of RX queues per port to N, where 1 <= N <= 65535. 248ac718398SBernard Iremonger The default value is 1. 249ac718398SBernard Iremonger 250e76d7a76SJohn McNamara* ``--rxd=N`` 251ac718398SBernard Iremonger 252ac718398SBernard Iremonger Set the number of descriptors in the RX rings to N, where N > 0. 253ac718398SBernard Iremonger The default value is 128. 254ac718398SBernard Iremonger 255e76d7a76SJohn McNamara* ``--txq=N`` 256ac718398SBernard Iremonger 257ac718398SBernard Iremonger Set the number of TX queues per port to N, where 1 <= N <= 65535. 258ac718398SBernard Iremonger The default value is 1. 259ac718398SBernard Iremonger 260e76d7a76SJohn McNamara* ``--txd=N`` 261ac718398SBernard Iremonger 262ac718398SBernard Iremonger Set the number of descriptors in the TX rings to N, where N > 0. 263ac718398SBernard Iremonger The default value is 512. 264ac718398SBernard Iremonger 265e76d7a76SJohn McNamara* ``--burst=N`` 266ac718398SBernard Iremonger 267ac718398SBernard Iremonger Set the number of packets per burst to N, where 1 <= N <= 512. 2688599ed31SRemy Horton The default value is 32. 2698599ed31SRemy Horton If set to 0, driver default is used if defined. Else, if driver 2708599ed31SRemy Horton default is not defined, default of 32 is used. 271ac718398SBernard Iremonger 272e76d7a76SJohn McNamara* ``--mbcache=N`` 273ac718398SBernard Iremonger 274ac718398SBernard Iremonger Set the cache of mbuf memory pools to N, where 0 <= N <= 512. 275ac718398SBernard Iremonger The default value is 16. 276ac718398SBernard Iremonger 277e76d7a76SJohn McNamara* ``--rxpt=N`` 278ac718398SBernard Iremonger 279ac718398SBernard Iremonger Set the prefetch threshold register of RX rings to N, where N >= 0. 280ac718398SBernard Iremonger The default value is 8. 281ac718398SBernard Iremonger 282e76d7a76SJohn McNamara* ``--rxht=N`` 283ac718398SBernard Iremonger 284ac718398SBernard Iremonger Set the host threshold register of RX rings to N, where N >= 0. 285ac718398SBernard Iremonger The default value is 8. 286ac718398SBernard Iremonger 287e76d7a76SJohn McNamara* ``--rxfreet=N`` 288ac718398SBernard Iremonger 289ac718398SBernard Iremonger Set the free threshold of RX descriptors to N, where 0 <= N < value of --rxd. 290ac718398SBernard Iremonger The default value is 0. 291ac718398SBernard Iremonger 292e76d7a76SJohn McNamara* ``--rxwt=N`` 293ac718398SBernard Iremonger 294ac718398SBernard Iremonger Set the write-back threshold register of RX rings to N, where N >= 0. 295ac718398SBernard Iremonger The default value is 4. 296ac718398SBernard Iremonger 297e76d7a76SJohn McNamara* ``--txpt=N`` 298ac718398SBernard Iremonger 299ac718398SBernard Iremonger Set the prefetch threshold register of TX rings to N, where N >= 0. 300ac718398SBernard Iremonger The default value is 36. 301ac718398SBernard Iremonger 302e76d7a76SJohn McNamara* ``--txht=N`` 303ac718398SBernard Iremonger 304ac718398SBernard Iremonger Set the host threshold register of TX rings to N, where N >= 0. 305ac718398SBernard Iremonger The default value is 0. 306ac718398SBernard Iremonger 307e76d7a76SJohn McNamara* ``--txwt=N`` 308ac718398SBernard Iremonger 309ac718398SBernard Iremonger Set the write-back threshold register of TX rings to N, where N >= 0. 310ac718398SBernard Iremonger The default value is 0. 311ac718398SBernard Iremonger 312e76d7a76SJohn McNamara* ``--txfreet=N`` 313ac718398SBernard Iremonger 314e76d7a76SJohn McNamara Set the transmit free threshold of TX rings to N, where 0 <= N <= value of ``--txd``. 315ac718398SBernard Iremonger The default value is 0. 316ac718398SBernard Iremonger 317e76d7a76SJohn McNamara* ``--txrst=N`` 318ac718398SBernard Iremonger 319e76d7a76SJohn McNamara Set the transmit RS bit threshold of TX rings to N, where 0 <= N <= value of ``--txd``. 320ac718398SBernard Iremonger The default value is 0. 321ac718398SBernard Iremonger 322e76d7a76SJohn McNamara* ``--rx-queue-stats-mapping=(port,queue,mapping)[,(port,queue,mapping)]`` 323ac718398SBernard Iremonger 324ac718398SBernard Iremonger Set the RX queues statistics counters mapping 0 <= mapping <= 15. 325ac718398SBernard Iremonger 326e76d7a76SJohn McNamara* ``--tx-queue-stats-mapping=(port,queue,mapping)[,(port,queue,mapping)]`` 327ac718398SBernard Iremonger 328ac718398SBernard Iremonger Set the TX queues statistics counters mapping 0 <= mapping <= 15. 329ac718398SBernard Iremonger 330e76d7a76SJohn McNamara* ``--no-flush-rx`` 331ac718398SBernard Iremonger 332e76d7a76SJohn McNamara Don't flush the RX streams before starting forwarding. Used mainly with the PCAP PMD. 333ac718398SBernard Iremonger 334e76d7a76SJohn McNamara* ``--txpkts=X[,Y]`` 335ac718398SBernard Iremonger 3362ebacaa7SMaciej Czekaj Set TX segment sizes or total packet length. Valid for ``tx-only`` 3372ebacaa7SMaciej Czekaj and ``flowgen`` forwarding modes. 338ac718398SBernard Iremonger 33982010ef5SYongseok Koh* ``--txonly-multi-flow`` 34082010ef5SYongseok Koh 34182010ef5SYongseok Koh Generate multiple flows in txonly mode. 34282010ef5SYongseok Koh 343e76d7a76SJohn McNamara* ``--disable-link-check`` 344ac718398SBernard Iremonger 345ac718398SBernard Iremonger Disable check on link status when starting/stopping ports. 346b8628a0eSGaetan Rivet 347b8628a0eSGaetan Rivet* ``--no-lsc-interrupt`` 348b8628a0eSGaetan Rivet 349b8628a0eSGaetan Rivet Disable LSC interrupts for all ports, even those supporting it. 350b8628a0eSGaetan Rivet 351b8628a0eSGaetan Rivet* ``--no-rmv-interrupt`` 352b8628a0eSGaetan Rivet 353b8628a0eSGaetan Rivet Disable RMV interrupts for all ports, even those supporting it. 354e25e6c70SRemy Horton 355e25e6c70SRemy Horton* ``--bitrate-stats=N`` 356e25e6c70SRemy Horton 357e25e6c70SRemy Horton Set the logical core N to perform bitrate calculation. 3583af72783SGaetan Rivet 3594fb82244SMatan Azrad* ``--print-event <unknown|intr_lsc|queue_state|intr_reset|vf_mbox|macsec|intr_rmv|dev_probed|dev_released|all>`` 3603af72783SGaetan Rivet 361b6b63dfdSGaetan Rivet Enable printing the occurrence of the designated event. Using all will 362b6b63dfdSGaetan Rivet enable all of them. 3633af72783SGaetan Rivet 3644fb82244SMatan Azrad* ``--mask-event <unknown|intr_lsc|queue_state|intr_reset|vf_mbox|macsec|intr_rmv|dev_probed|dev_released|all>`` 3653af72783SGaetan Rivet 366b6b63dfdSGaetan Rivet Disable printing the occurrence of the designated event. Using all will 367b6b63dfdSGaetan Rivet disable all of them. 3687ee3e944SVasily Philipov 3697ee3e944SVasily Philipov* ``--flow-isolate-all`` 3707ee3e944SVasily Philipov 3717ee3e944SVasily Philipov Providing this parameter requests flow API isolated mode on all ports at 3727ee3e944SVasily Philipov initialization time. It ensures all traffic is received through the 3737ee3e944SVasily Philipov configured flow rules only (see flow command). 3747ee3e944SVasily Philipov 3757ee3e944SVasily Philipov Ports that do not support this mode are automatically discarded. 376fd8c20aaSShahaf Shuler 377fd8c20aaSShahaf Shuler* ``--tx-offloads=0xXXXXXXXX`` 378fd8c20aaSShahaf Shuler 379fd8c20aaSShahaf Shuler Set the hexadecimal bitmask of TX queue offloads. 380fd8c20aaSShahaf Shuler The default value is 0. 381fb73e096SJeff Guo 382fb73e096SJeff Guo* ``--hot-plug`` 383fb73e096SJeff Guo 38447ae571eSStephen Hemminger Enable device event monitor mechanism for hotplug. 38539e5e20fSXueming Li 38639e5e20fSXueming Li* ``--vxlan-gpe-port=N`` 38739e5e20fSXueming Li 38839e5e20fSXueming Li Set the UDP port number of tunnel VXLAN-GPE to N. 38939e5e20fSXueming Li The default value is 4790. 390e505d84cSAnatoly Burakov 391e505d84cSAnatoly Burakov* ``--mlockall`` 392e505d84cSAnatoly Burakov 393e505d84cSAnatoly Burakov Enable locking all memory. 394e505d84cSAnatoly Burakov 395e505d84cSAnatoly Burakov* ``--no-mlockall`` 396e505d84cSAnatoly Burakov 397e505d84cSAnatoly Burakov Disable locking all memory. 398c7f5dba7SAnatoly Burakov 399c7f5dba7SAnatoly Burakov* ``--mp-alloc <native|anon|xmem|xmemhuge>`` 400c7f5dba7SAnatoly Burakov 401c7f5dba7SAnatoly Burakov Select mempool allocation mode: 402c7f5dba7SAnatoly Burakov 403c7f5dba7SAnatoly Burakov * native: create and populate mempool using native DPDK memory 404c7f5dba7SAnatoly Burakov * anon: create mempool using native DPDK memory, but populate using 405c7f5dba7SAnatoly Burakov anonymous memory 406c7f5dba7SAnatoly Burakov * xmem: create and populate mempool using externally and anonymously 407c7f5dba7SAnatoly Burakov allocated area 408c7f5dba7SAnatoly Burakov * xmemhuge: create and populate mempool using externally and anonymously 409c7f5dba7SAnatoly Burakov allocated hugepage area 4103c156061SJens Freimann 4113c156061SJens Freimann* ``--noisy-tx-sw-buffer-size`` 4123c156061SJens Freimann 4133c156061SJens Freimann Set the number of maximum elements of the FIFO queue to be created 4143c156061SJens Freimann for buffering packets. Only available with the noisy forwarding mode. 4153c156061SJens Freimann The default value is 0. 4163c156061SJens Freimann 4173c156061SJens Freimann* ``--noisy-tx-sw-buffer-flushtime=N`` 4183c156061SJens Freimann 4193c156061SJens Freimann Set the time before packets in the FIFO queue is flushed. 4203c156061SJens Freimann Only available with the noisy forwarding mode. The default value is 0. 4213c156061SJens Freimann 4223c156061SJens Freimann* ``--noisy-lkup-memory=N`` 4233c156061SJens Freimann 424*d629b7b5SJohn McNamara Set the size of the noisy neighbor simulation memory buffer in MB to N. 4253c156061SJens Freimann Only available with the noisy forwarding mode. The default value is 0. 4263c156061SJens Freimann 4273c156061SJens Freimann 4283c156061SJens Freimann* ``--noisy-lkup-num-reads=N`` 4293c156061SJens Freimann 430*d629b7b5SJohn McNamara Set the number of reads to be done in noisy neighbor simulation memory buffer to N. 4313c156061SJens Freimann Only available with the noisy forwarding mode. The default value is 0. 4323c156061SJens Freimann 4333c156061SJens Freimann* ``--noisy-lkup-num-writes=N`` 4343c156061SJens Freimann 435*d629b7b5SJohn McNamara Set the number of writes to be done in noisy neighbor simulation memory buffer to N. 4363c156061SJens Freimann Only available with the noisy forwarding mode. The default value is 0. 4373c156061SJens Freimann 4383c156061SJens Freimann* ``--noisy-lkup-num-reads-writes=N`` 4393c156061SJens Freimann 440*d629b7b5SJohn McNamara Set the number of r/w accesses to be done in noisy neighbor simulation memory buffer to N. 4413c156061SJens Freimann Only available with the noisy forwarding mode. The default value is 0. 44259fcf854SShahaf Shuler 44359fcf854SShahaf Shuler* ``--no-iova-contig`` 44459fcf854SShahaf Shuler 44559fcf854SShahaf Shuler Enable to create mempool which is not IOVA contiguous. Valid only with --mp-alloc=anon. 44659fcf854SShahaf Shuler The default value is 0. 447