2 Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
9 * Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
11 * Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in
13 the documentation and/or other materials provided with the
15 * Neither the name of Intel Corporation nor the names of its
16 contributors may be used to endorse or promote products derived
17 from this software without specific prior written permission.
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 Testpmd Runtime Functions
34 =========================
36 Where the testpmd application is started in interactive mode, (``-i|--interactive``),
37 it displays a prompt that can be used to start and stop forwarding,
38 configure the application, display statistics, set the Flow Director and other tasks::
42 The testpmd prompt has some, limited, readline support.
43 Common bash command-line functions such as ``Ctrl+a`` and ``Ctrl+e`` to go to the start and end of the prompt line are supported
44 as well as access to the command history via the up-arrow.
46 There is also support for tab completion.
47 If you type a partial command and hit ``<TAB>`` you get a list of the available completions:
49 .. code-block:: console
51 testpmd> show port <TAB>
53 info [Mul-choice STRING]: show|clear port info|stats|fdir|stat_qmap X
54 info [Mul-choice STRING]: show|clear port info|stats|fdir|stat_qmap all
55 stats [Mul-choice STRING]: show|clear port info|stats|fdir|stat_qmap X
56 stats [Mul-choice STRING]: show|clear port info|stats|fdir|stat_qmap all
62 Some examples in this document are too long to fit on one line are are shown wrapped at `"\\"` for display purposes::
64 testpmd> set flow_ctrl rx (on|off) tx (on|off) (high_water) (low_water) \
65 (pause_time) (send_xon) (port_id)
67 In the real ``testpmd>`` prompt these commands should be on a single line.
72 The testpmd has on-line help for the functions that are available at runtime.
73 These are divided into sections and can be accessed using help, help section or help all:
75 .. code-block:: console
79 help control : Start and stop forwarding.
80 help display : Displaying port, stats and config information.
81 help config : Configuration information.
82 help ports : Configuring ports.
83 help registers : Reading and setting port registers.
84 help filters : Filters configuration help.
85 help all : All of the above sections.
94 Start packet forwarding with current configuration::
101 Start packet forwarding with current configuration after sending one burst of packets::
103 testpmd> start tx_first
108 Stop packet forwarding, and display accumulated statistics::
123 The functions in the following sections are used to display information about the
124 testpmd configuration or the NIC status.
129 Display information for a given port or all ports::
131 testpmd> show port (info|stats|fdir|stat_qmap) (port_id|all)
133 The available information categories are:
135 * ``info``: General port information such as MAC address.
137 * ``stats``: RX/TX statistics.
139 * ``fdir``: Flow Director information and statistics.
141 * ``stat_qmap``: Queue statistics mapping.
145 .. code-block:: console
147 testpmd> show port info 0
149 ********************* Infos for port 0 *********************
151 MAC address: XX:XX:XX:XX:XX:XX
153 memory allocation on the socket: 0
155 Link speed: 40000 Mbps
156 Link duplex: full-duplex
157 Promiscuous mode: enabled
158 Allmulticast mode: disabled
159 Maximum number of MAC addresses: 64
160 Maximum number of MAC addresses of hash filtering: 0
165 Redirection table size: 512
166 Supported flow types:
182 Display the rss redirection table entry indicated by masks on port X::
184 testpmd> show port (port_id) rss reta (size) (mask0, mask1...)
186 size is used to indicate the hardware supported reta size
191 Display the RSS hash functions and RSS hash key of a port::
193 testpmd> show port (port_id) rss-hash ipv4|ipv4-frag|ipv4-tcp|ipv4-udp|ipv4-sctp|ipv4-other|ipv6|ipv6-frag|ipv6-tcp|ipv6-udp|ipv6-sctp|ipv6-other|l2-payload|ipv6-ex|ipv6-tcp-ex|ipv6-udp-ex [key]
198 Clear the port statistics for a given port or for all ports::
200 testpmd> clear port (info|stats|fdir|stat_qmap) (port_id|all)
204 testpmd> clear port stats all
209 Displays the configuration of the application.
210 The configuration comes from the command-line, the runtime or the application defaults::
212 testpmd> show config (rxtx|cores|fwd)
214 The available information categories are:
216 * ``rxtx``: RX/TX configuration items.
218 * ``cores``: List of forwarding cores.
220 * ``fwd``: Packet forwarding configuration.
224 .. code-block:: console
226 testpmd> show config rxtx
228 io packet forwarding - CRC stripping disabled - packets/burst=16
229 nb forwarding cores=2 - nb forwarding ports=1
230 RX queues=1 - RX desc=128 - RX free threshold=0
231 RX threshold registers: pthresh=8 hthresh=8 wthresh=4
232 TX queues=1 - TX desc=512 - TX free threshold=0
233 TX threshold registers: pthresh=36 hthresh=0 wthresh=0
234 TX RS bit threshold=0 - TXQ flags=0x0
239 Set the packet forwarding mode::
241 testpmd> set fwd (io|mac|mac_retry|macswap|flowgen| \
242 rxonly|txonly|csum|icmpecho)
244 The available information categories are:
246 * ``io``: Forwards packets "as-is" in I/O mode.
247 This is the fastest possible forwarding operation as it does not access packets data.
248 This is the default mode.
250 * ``mac``: Changes the source and the destination Ethernet addresses of packets before forwarding them.
252 * ``mac_retry``: Same as "mac" forwarding mode, but includes retries if the destination queue is full.
254 * ``macswap``: MAC swap forwarding mode.
255 Swaps the source and the destination Ethernet addresses of packets before forwarding them.
257 * ``flowgen``: Multi-flow generation mode.
258 Originates a number of flows (with varying destination IP addresses), and terminate receive traffic.
260 * ``rxonly``: Receives packets but doesn't transmit them.
262 * ``txonly``: Generates and transmits packets without receiving any.
264 * ``csum``: Changes the checksum field with hardware or software methods depending on the offload flags on the packet.
266 * ``icmpecho``: Receives a burst of packets, lookup for IMCP echo requests and, if any, send back ICMP echo replies.
268 * ``ieee1588``: Demonstrate L2 IEEE1588 V2 PTP timestamping for RX and TX. Requires ``CONFIG_RTE_LIBRTE_IEEE1588=y``.
270 Note: TX timestamping is only available in the "Full Featured" TX path. To force ``testpmd`` into this mode set ``--txqflags=0``.
274 testpmd> set fwd rxonly
276 Set rxonly packet forwarding mode
282 Display an RX descriptor for a port RX queue::
284 testpmd> read rxd (port_id) (queue_id) (rxd_id)
288 testpmd> read rxd 0 0 4
289 0x0000000B - 0x001D0180 / 0x0000000B - 0x001D0180
294 Display a TX descriptor for a port TX queue::
296 testpmd> read txd (port_id) (queue_id) (txd_id)
300 testpmd> read txd 0 0 4
301 0x00000001 - 0x24C3C440 / 0x000F0000 - 0x2330003C
304 Configuration Functions
305 -----------------------
307 The testpmd application can be configured from the runtime as well as from the command-line.
309 This section details the available configuration functions that are available.
313 Configuration changes only become active when forwarding is started/restarted.
318 Reset forwarding to the default configuration::
325 Set the debug verbosity level::
327 testpmd> set verbose (level)
329 Currently the only available levels are 0 (silent except for error) and 1 (fully verbose).
334 Set the number of ports used by the application:
338 This is equivalent to the ``--nb-ports`` command-line option.
343 Set the number of cores used by the application::
345 testpmd> set nbcore (num)
347 This is equivalent to the ``--nb-cores`` command-line option.
351 The number of cores used must not be greater than number of ports used multiplied by the number of queues per port.
356 Set the forwarding cores hexadecimal mask::
358 testpmd> set coremask (mask)
360 This is equivalent to the ``--coremask`` command-line option.
364 The master lcore is reserved for command line parsing only and cannot be masked on for packet forwarding.
369 Set the forwarding ports hexadecimal mask::
371 testpmd> set portmask (mask)
373 This is equivalent to the ``--portmask`` command-line option.
378 Set number of packets per burst::
380 testpmd> set burst (num)
382 This is equivalent to the ``--burst command-line`` option.
384 In ``mac_retry`` forwarding mode, the transmit delay time and number of retries can also be set::
386 testpmd> set burst tx delay (micrseconds) retry (num)
391 Set the length of each segment of the TX-ONLY packets::
393 testpmd> set txpkts (x[,y]*)
395 Where x[,y]* represents a CSV list of values, without white space.
400 Set the list of forwarding cores::
402 testpmd> set corelist (x[,y]*)
404 For example, to change the forwarding cores:
406 .. code-block:: console
408 testpmd> set corelist 3,1
409 testpmd> show config fwd
411 io packet forwarding - ports=2 - cores=2 - streams=2 - NUMA support disabled
412 Logical Core 3 (socket 0) forwards packets on 1 streams:
413 RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01
414 Logical Core 1 (socket 0) forwards packets on 1 streams:
415 RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00
419 The cores are used in the same order as specified on the command line.
424 Set the list of forwarding ports::
426 testpmd> set portlist (x[,y]*)
428 For example, to change the port forwarding:
430 .. code-block:: console
432 testpmd> set portlist 0,2,1,3
433 testpmd> show config fwd
435 io packet forwarding - ports=4 - cores=1 - streams=4
436 Logical Core 3 (socket 0) forwards packets on 4 streams:
437 RX P=0/Q=0 (socket 0) -> TX P=2/Q=0 (socket 0) peer=02:00:00:00:00:01
438 RX P=2/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00
439 RX P=1/Q=0 (socket 0) -> TX P=3/Q=0 (socket 0) peer=02:00:00:00:00:03
440 RX P=3/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:02
445 Set the VLAN strip on a port::
447 testpmd> vlan set strip (on|off) (port_id)
452 Set the VLAN strip for a queue on a port::
454 testpmd> vlan set stripq (on|off) (port_id,queue_id)
459 Set the VLAN filter on a port::
461 testpmd> vlan set filter (on|off) (port_id)
466 Set the VLAN QinQ (extended queue in queue) on for a port::
468 testpmd> vlan set qinq (on|off) (port_id)
473 Set the outer VLAN TPID for packet filtering on a port::
475 testpmd> vlan set tpid (value) (port_id)
479 TPID value must be a 16-bit number (value <= 65536).
484 Add a VLAN ID, or all identifiers, to the set of VLAN identifiers filtered by port ID::
486 testpmd> rx_vlan add (vlan_id|all) (port_id)
490 VLAN filter must be set on that port. VLAN ID < 4096.
491 Depending on the NIC used, number of vlan_ids may be limited to the maximum entries
492 in VFTA table. This is important if enabling all vlan_ids.
497 Remove a VLAN ID, or all identifiers, from the set of VLAN identifiers filtered by port ID::
499 testpmd> rx_vlan rm (vlan_id|all) (port_id)
504 Add a VLAN ID, to the set of VLAN identifiers filtered for VF(s) for port ID::
506 testpmd> rx_vlan add (vlan_id) port (port_id) vf (vf_mask)
511 Remove a VLAN ID, from the set of VLAN identifiers filtered for VF(s) for port ID::
513 testpmd> rx_vlan rm (vlan_id) port (port_id) vf (vf_mask)
518 Set the outer VLAN TPID for packet filtering on a port::
520 testpmd> rx_vlan set tpid (value) (port_id)
525 Add a tunnel filter on a port::
527 testpmd> tunnel_filter add (port_id) (outer_mac) (inner_mac) (ip_addr) \
528 (inner_vlan) (tunnel_type) (filter_type) (tenant_id) (queue_id)
533 Remove a tunnel filter on a port::
535 testpmd> tunnel_filter rm (port_id) (outer_mac) (inner_mac) (ip_addr) \
536 (inner_vlan) (tunnel_type) (filter_type) (tenant_id) (queue_id)
541 Add an UDP port for VXLAN packet filter on a port::
543 testpmd> rx_vxlan_port add (udp_port) (port_id)
548 Remove an UDP port for VXLAN packet filter on a port::
550 testpmd> rx_vxlan_port rm (udp_port) (port_id)
555 Set hardware insertion of VLAN IDs in packets sent on a port::
557 testpmd> tx_vlan set (port_id) vlan_id[, vlan_id_outer]
559 For example, set a single VLAN ID (5) insertion on port 0::
563 Or, set double VLAN ID (inner: 2, outer: 3) insertion on port 1::
571 Set port based hardware insertion of VLAN ID in packets sent on a port::
573 testpmd> tx_vlan set pvid (port_id) (vlan_id) (on|off)
578 Disable hardware insertion of a VLAN header in packets sent on a port::
580 testpmd> tx_vlan reset (port_id)
585 Select hardware or software calculation of the checksum when
586 transmitting a packet using the ``csum`` forwarding engine::
588 testpmd> csum set (ip|udp|tcp|sctp|outer-ip) (hw|sw) (port_id)
592 * ``ip|udp|tcp|sctp`` always relate to the inner layer.
594 * ``outer-ip`` relates to the outer IP layer (only for IPv4) in the case where the packet is recognized
595 as a tunnel packet by the forwarding engine (vxlan, gre and ipip are
596 supported). See also the ``csum parse-tunnel`` command.
600 Check the NIC Datasheet for hardware limits.
605 Define how tunneled packets should be handled by the csum forward
608 testpmd> csum parse-tunnel (on|off) (tx_port_id)
610 If enabled, the csum forward engine will try to recognize supported
611 tunnel headers (vxlan, gre, ipip).
613 If disabled, treat tunnel packets as non-tunneled packets (a inner
614 header is handled as a packet payload).
618 The port argument is the TX port like in the ``csum set`` command.
622 Consider a packet in packet like the following::
624 eth_out/ipv4_out/udp_out/vxlan/eth_in/ipv4_in/tcp_in
626 * If parse-tunnel is enabled, the ``ip|udp|tcp|sctp`` parameters of ``csum set``
627 command relate to the inner headers (here ``ipv4_in`` and ``tcp_in``), and the
628 ``outer-ip parameter`` relates to the outer headers (here ``ipv4_out``).
630 * If parse-tunnel is disabled, the ``ip|udp|tcp|sctp`` parameters of ``csum set``
631 command relate to the outer headers, here ``ipv4_out`` and ``udp_out``.
636 Display tx checksum offload configuration::
638 testpmd> csum show (port_id)
643 Enable TCP Segmentation Offload (TSO) in the ``csum`` forwarding engine::
645 testpmd> tso set (segsize) (port_id)
649 Check the NIC datasheet for hardware limits.
654 Display the status of TCP Segmentation Offload::
656 testpmd> tso show (port_id)
661 Add an alternative MAC address to a port::
663 testpmd> mac_addr add (port_id) (XX:XX:XX:XX:XX:XX)
668 Remove a MAC address from a port::
670 testpmd> mac_addr remove (port_id) (XX:XX:XX:XX:XX:XX)
675 Add an alternative MAC address for a VF to a port::
677 testpmd> mac_add add port (port_id) vf (vf_id) (XX:XX:XX:XX:XX:XX)
682 Set the unicast hash filter(s) on/off for a port::
684 testpmd> set port (port_id) uta (XX:XX:XX:XX:XX:XX|all) (on|off)
689 Set the promiscuous mode on for a port or for all ports.
690 In promiscuous mode packets are not dropped if they aren't for the specified MAC address::
692 testpmd> set promisc (port_id|all) (on|off)
697 Set the allmulti mode for a port or for all ports::
699 testpmd> set allmulti (port_id|all) (on|off)
701 Same as the ifconfig (8) option. Controls how multicast packets are handled.
706 Set the link flow control parameter on a port::
708 testpmd> set flow_ctrl rx (on|off) tx (on|off) (high_water) (low_water) \
709 (pause_time) (send_xon) mac_ctrl_frame_fwd (on|off) \
710 autoneg (on|off) (port_id)
714 * ``high_water`` (integer): High threshold value to trigger XOFF.
716 * ``low_water`` (integer): Low threshold value to trigger XON.
718 * ``pause_time`` (integer): Pause quota in the Pause frame.
720 * ``send_xon`` (0/1): Send XON frame.
722 * ``mac_ctrl_frame_fwd``: Enable receiving MAC control frames.
724 * ``autoneg``: Change the auto-negotiation para mete.
729 Set the priority flow control parameter on a port::
731 testpmd> set pfc_ctrl rx (on|off) tx (on|off) (high_water) (low_water) \
732 (pause_time) (priority) (port_id)
736 * ``high_water`` (integer): High threshold value.
738 * ``low_water`` (integer): Low threshold value.
740 * ``pause_time`` (integer): Pause quota in the Pause frame.
742 * ``priority`` (0-7): VLAN User Priority.
747 Set statistics mapping (qmapping 0..15) for RX/TX queue on port::
749 testpmd> set stat_qmap (tx|rx) (port_id) (queue_id) (qmapping)
751 For example, to set rx queue 2 on port 0 to mapping 5::
753 testpmd>set stat_qmap rx 0 2 5
755 set port - rx/tx (for VF)
756 ~~~~~~~~~~~~~~~~~~~~~~~~~
758 Set VF receive/transmit from a port::
760 testpmd> set port (port_id) vf (vf_id) (rx|tx) (on|off)
762 set port - mac address filter (for VF)
763 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
765 Add/Remove unicast or multicast MAC addr filter for a VF::
767 testpmd> set port (port_id) vf (vf_id) (mac_addr) \
768 (exact-mac|exact-mac-vlan|hashmac|hashmac-vlan) (on|off)
770 set port - rx mode(for VF)
771 ~~~~~~~~~~~~~~~~~~~~~~~~~~
773 Set the VF receive mode of a port::
775 testpmd> set port (port_id) vf (vf_id) \
776 rxmode (AUPE|ROPE|BAM|MPE) (on|off)
778 The available receive modes are:
780 * ``AUPE``: Accepts untagged VLAN.
782 * ``ROPE``: Accepts unicast hash.
784 * ``BAM``: Accepts broadcast packets.
786 * ``MPE``: Accepts all multicast packets.
788 set port - tx_rate (for Queue)
789 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
791 Set TX rate limitation for a queue on a port::
793 testpmd> set port (port_id) queue (queue_id) rate (rate_value)
795 set port - tx_rate (for VF)
796 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
798 Set TX rate limitation for queues in VF on a port::
800 testpmd> set port (port_id) vf (vf_id) rate (rate_value) queue_mask (queue_mask)
802 set port - mirror rule
803 ~~~~~~~~~~~~~~~~~~~~~~
805 Set pool or vlan type mirror rule for a port::
807 testpmd> set port (port_id) mirror-rule (rule_id) \
808 (pool-mirror-up|pool-mirror-down|vlan-mirror) \
809 (poolmask|vlanid[,vlanid]*) dst-pool (pool_id) (on|off)
811 Set link mirror rule for a port::
813 testpmd> set port (port_id) mirror-rule (rule_id) \
814 (uplink-mirror|downlink-mirror) dst-pool (pool_id) (on|off)
816 For example to enable mirror traffic with vlan 0,1 to pool 0::
818 set port 0 mirror-rule 0 vlan-mirror 0,1 dst-pool 0 on
820 reset port - mirror rule
821 ~~~~~~~~~~~~~~~~~~~~~~~~
823 Reset a mirror rule for a port::
825 testpmd> reset port (port_id) mirror-rule (rule_id)
830 Set the flush on RX streams before forwarding.
831 The default is flush ``on``.
832 Mainly used with PCAP drivers to turn off the default behavior of flushing the first 512 packets on RX streams::
834 testpmd> set flush_rx off
839 Set the bypass mode for the lowest port on bypass enabled NIC::
841 testpmd> set bypass mode (normal|bypass|isolate) (port_id)
846 Set the event required to initiate specified bypass mode for the lowest port on a bypass enabled::
848 testpmd> set bypass event (timeout|os_on|os_off|power_on|power_off) \
849 mode (normal|bypass|isolate) (port_id)
853 * ``timeout``: Enable bypass after watchdog timeout.
855 * ``os_on``: Enable bypass when OS/board is powered on.
857 * ``os_off``: Enable bypass when OS/board is powered off.
859 * ``power_on``: Enable bypass when power supply is turned on.
861 * ``power_off``: Enable bypass when power supply is turned off.
867 Set the bypass watchdog timeout to ``n`` seconds where 0 = instant::
869 testpmd> set bypass timeout (0|1.5|2|3|4|8|16|32)
874 Show the bypass configuration for a bypass enabled NIC using the lowest port on the NIC::
876 testpmd> show bypass config (port_id)
881 Set link up for a port::
883 testpmd> set link-up port (port id)
888 Set link down for a port::
890 testpmd> set link-down port (port id)
896 The following sections show functions for configuring ports.
900 Port configuration changes only become active when forwarding is started/restarted.
905 Attach a port specified by pci address or virtual device args.
907 To attach a new pci device, the device should be recognized by kernel first.
908 Then it should be moved under DPDK management.
909 Finally the port can be attached to testpmd.
911 For example, to move a pci device using ixgbe under DPDK management:
913 .. code-block:: console
915 # Check the status of the available devices.
916 ./tools/dpdk_nic_bind.py --status
918 Network devices using DPDK-compatible driver
919 ============================================
922 Network devices using kernel driver
923 ===================================
924 0000:0a:00.0 '82599ES 10-Gigabit' if=eth2 drv=ixgbe unused=
927 # Bind the device to igb_uio.
928 sudo ./tools/dpdk_nic_bind.py -b igb_uio 0000:0a:00.0
931 # Recheck the status of the devices.
932 ./tools/dpdk_nic_bind.py --status
933 Network devices using DPDK-compatible driver
934 ============================================
935 0000:0a:00.0 '82599ES 10-Gigabit' drv=igb_uio unused=
937 To attach a port created by virtual device, above steps are not needed.
939 port attach (identifier)
941 For example, to attach a port whose pci address is 0000:0a:00.0.
943 .. code-block:: console
945 testpmd> port attach 0000:0a:00.0
946 Attaching a new port...
947 EAL: PCI device 0000:0a:00.0 on NUMA socket -1
948 EAL: probe driver: 8086:10fb rte_ixgbe_pmd
949 EAL: PCI memory mapped at 0x7f83bfa00000
950 EAL: PCI memory mapped at 0x7f83bfa80000
951 PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 18, SFP+: 5
952 PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 deviceID=0x10fb
953 Port 0 is attached. Now total ports is 1
956 For example, to attach a port created by pcap PMD.
958 .. code-block:: console
960 testpmd> port attach eth_pcap0
961 Attaching a new port...
962 PMD: Initializing pmd_pcap for eth_pcap0
963 PMD: Creating pcap-backed ethdev on numa socket 0
964 Port 0 is attached. Now total ports is 1
967 In this case, identifier is ``eth_pcap0``.
968 This identifier format is the same as ``--vdev`` format of DPDK applications.
970 For example, to re-attach a bonded port which has been previously detached,
971 the mode and slave parameters must be given.
973 .. code-block:: console
975 testpmd> port attach eth_bond_0,mode=0,slave=1
976 Attaching a new port...
977 EAL: Initializing pmd_bond for eth_bond_0
978 EAL: Create bonded device eth_bond_0 on port 0 in mode 0 on socket 0.
979 Port 0 is attached. Now total ports is 1
986 Detach a specific port.
988 Before detaching a port, the port should be closed::
990 testpmd> port detach (port_id)
992 For example, to detach a pci device port 0.
994 .. code-block:: console
996 testpmd> port close 0
1000 testpmd> port detach 0
1002 EAL: PCI device 0000:0a:00.0 on NUMA socket -1
1003 EAL: remove driver: 8086:10fb rte_ixgbe_pmd
1004 EAL: PCI memory unmapped at 0x7f83bfa00000
1005 EAL: PCI memory unmapped at 0x7f83bfa80000
1009 For example, to detach a virtual device port 0.
1011 .. code-block:: console
1013 testpmd> port close 0
1017 testpmd> port detach 0
1019 PMD: Closing pcap ethdev on numa socket 0
1020 Port 'eth_pcap0' is detached. Now total ports is 0
1023 To remove a pci device completely from the system, first detach the port from testpmd.
1024 Then the device should be moved under kernel management.
1025 Finally the device can be removed using kernel pci hotplug functionality.
1027 For example, to move a pci device under kernel management:
1029 .. code-block:: console
1031 sudo ./tools/dpdk_nic_bind.py -b ixgbe 0000:0a:00.0
1033 ./tools/dpdk_nic_bind.py --status
1035 Network devices using DPDK-compatible driver
1036 ============================================
1039 Network devices using kernel driver
1040 ===================================
1041 0000:0a:00.0 '82599ES 10-Gigabit' if=eth2 drv=ixgbe unused=igb_uio
1043 To remove a port created by a virtual device, above steps are not needed.
1048 Start all ports or a specific port::
1050 testpmd> port start (port_id|all)
1055 Stop all ports or a specific port::
1057 testpmd> port stop (port_id|all)
1062 Close all ports or a specific port::
1064 testpmd> port close (port_id|all)
1066 port start/stop queue
1067 ~~~~~~~~~~~~~~~~~~~~~
1069 Start/stop a rx/tx queue on a specific port::
1071 testpmd> port (port_id) (rxq|txq) (queue_id) (start|stop)
1073 Only take effect when port is started.
1078 Set the speed and duplex mode for all ports or a specific port::
1080 testpmd> port config (port_id|all) speed (10|100|1000|10000|auto) \
1081 duplex (half|full|auto)
1083 port config - queues/descriptors
1084 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1086 Set number of queues/descriptors for rxq, txq, rxd and txd::
1088 testpmd> port config all (rxq|txq|rxd|txd) (value)
1090 This is equivalent to the ``--rxq``, ``--txq``, ``--rxd`` and ``--txd`` command-line options.
1092 port config - max-pkt-len
1093 ~~~~~~~~~~~~~~~~~~~~~~~~~
1095 Set the maximum packet length::
1097 testpmd> port config all max-pkt-len (value)
1099 This is equivalent to the ``--max-pkt-len`` command-line option.
1101 port config - CRC Strip
1102 ~~~~~~~~~~~~~~~~~~~~~~~
1104 Set hardware CRC stripping on or off for all ports::
1106 testpmd> port config all crc-strip (on|off)
1108 CRC stripping is off by default.
1110 The ``on`` option is equivalent to the ``--crc-strip`` command-line option.
1112 port config - RX Checksum
1113 ~~~~~~~~~~~~~~~~~~~~~~~~~
1115 Set hardware RX checksum offload to on or off for all ports::
1117 testpmd> port config all rx-cksum (on|off)
1119 Checksum offload is off by default.
1121 The ``on`` option is equivalent to the ``--enable-rx-cksum`` command-line option.
1126 Set hardware VLAN on or off for all ports::
1128 testpmd> port config all hw-vlan (on|off)
1130 Hardware VLAN is on by default.
1132 The ``off`` option is equivalent to the ``--disable-hw-vlan`` command-line option.
1134 port config - VLAN filter
1135 ~~~~~~~~~~~~~~~~~~~~~~~~~
1137 Set hardware VLAN filter on or off for all ports::
1139 testpmd> port config all hw-vlan-filter (on|off)
1141 Hardware VLAN filter is on by default.
1143 The ``off`` option is equivalent to the ``--disable-hw-vlan-filter`` command-line option.
1145 port config - VLAN strip
1146 ~~~~~~~~~~~~~~~~~~~~~~~~
1148 Set hardware VLAN strip on or off for all ports::
1150 testpmd> port config all hw-vlan-strip (on|off)
1152 Hardware VLAN strip is on by default.
1154 The ``off`` option is equivalent to the ``--disable-hw-vlan-strip`` command-line option.
1156 port config - VLAN extend
1157 ~~~~~~~~~~~~~~~~~~~~~~~~~
1159 Set hardware VLAN extend on or off for all ports::
1161 testpmd> port config all hw-vlan-extend (on|off)
1163 Hardware VLAN extend is off by default.
1165 The ``off`` option is equivalent to the ``--disable-hw-vlan-extend`` command-line option.
1167 port config - Drop Packets
1168 ~~~~~~~~~~~~~~~~~~~~~~~~~~
1170 Set packet drop for packets with no descriptors on or off for all ports::
1172 testpmd> port config all drop-en (on|off)
1174 Packet dropping for packets with no descriptors is off by default.
1176 The ``on`` option is equivalent to the ``--enable-drop-en`` command-line option.
1181 Set the RSS (Receive Side Scaling) mode on or off::
1183 testpmd> port config all rss (all|ip|tcp|udp|sctp|ether|none)
1185 RSS is on by default.
1187 The ``none`` option is equivalent to the ``--disable-rss`` command-line option.
1189 port config - RSS Reta
1190 ~~~~~~~~~~~~~~~~~~~~~~
1192 Set the RSS (Receive Side Scaling) redirection table::
1194 testpmd> port config all rss reta (hash,queue)[,(hash,queue)]
1199 Set the DCB mode for an individual port::
1201 testpmd> port config (port_id) dcb vt (on|off) (traffic_class) pfc (on|off)
1203 The traffic class should be 4 or 8.
1208 Set the number of packets per burst::
1210 testpmd> port config all burst (value)
1212 This is equivalent to the ``--burst`` command-line option.
1214 port config - Threshold
1215 ~~~~~~~~~~~~~~~~~~~~~~~
1217 Set thresholds for TX/RX queues::
1219 testpmd> port config all (threshold) (value)
1221 Where the threshold type can be:
1223 * ``txpt:`` Set the prefetch threshold register of the TX rings, 0 <= value <= 255.
1225 * ``txht:`` Set the host threshold register of the TX rings, 0 <= value <= 255.
1227 * ``txwt:`` Set the write-back threshold register of the TX rings, 0 <= value <= 255.
1229 * ``rxpt:`` Set the prefetch threshold register of the RX rings, 0 <= value <= 255.
1231 * ``rxht:`` Set the host threshold register of the RX rings, 0 <= value <= 255.
1233 * ``rxwt:`` Set the write-back threshold register of the RX rings, 0 <= value <= 255.
1235 * ``txfreet:`` Set the transmit free threshold of the TX rings, 0 <= value <= txd.
1237 * ``rxfreet:`` Set the transmit free threshold of the RX rings, 0 <= value <= rxd.
1239 * ``txrst:`` Set the transmit RS bit threshold of TX rings, 0 <= value <= txd.
1241 These threshold options are also available from the command-line.
1244 Link Bonding Functions
1245 ----------------------
1247 The Link Bonding functions make it possible to dynamically create and
1248 manage link bonding devices from within testpmd interactive prompt.
1250 create bonded device
1251 ~~~~~~~~~~~~~~~~~~~~
1253 Create a new bonding device::
1255 testpmd> create bonded device (mode) (socket)
1257 For example, to create a bonded device in mode 1 on socket 0::
1259 testpmd> create bonded 1 0
1260 created new bonded device (port X)
1265 Adds Ethernet device to a Link Bonding device::
1267 testpmd> add bonding slave (slave id) (port id)
1269 For example, to add Ethernet device (port 6) to a Link Bonding device (port 10)::
1271 testpmd> add bonding slave 6 10
1274 remove bonding slave
1275 ~~~~~~~~~~~~~~~~~~~~
1277 Removes an Ethernet slave device from a Link Bonding device::
1279 testpmd> remove bonding slave (slave id) (port id)
1281 For example, to remove Ethernet slave device (port 6) to a Link Bonding device (port 10)::
1283 testpmd> remove bonding slave 6 10
1288 Set the Link Bonding mode of a Link Bonding device::
1290 testpmd> set bonding mode (value) (port id)
1292 For example, to set the bonding mode of a Link Bonding device (port 10) to broadcast (mode 3)::
1294 testpmd> set bonding mode 3 10
1299 Set an Ethernet slave device as the primary device on a Link Bonding device::
1301 testpmd> set bonding primary (slave id) (port id)
1303 For example, to set the Ethernet slave device (port 6) as the primary port of a Link Bonding device (port 10)::
1305 testpmd> set bonding primary 6 10
1310 Set the MAC address of a Link Bonding device::
1312 testpmd> set bonding mac (port id) (mac)
1314 For example, to set the MAC address of a Link Bonding device (port 10) to 00:00:00:00:00:01::
1316 testpmd> set bonding mac 10 00:00:00:00:00:01
1318 set bonding xmit_balance_policy
1319 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1321 Set the transmission policy for a Link Bonding device when it is in Balance XOR mode::
1323 testpmd> set bonding xmit_balance_policy (port_id) (l2|l23|l34)
1325 For example, set a Link Bonding device (port 10) to use a balance policy of layer 3+4 (IP addresses & UDP ports)::
1327 testpmd> set bonding xmit_balance_policy 10 l34
1330 set bonding mon_period
1331 ~~~~~~~~~~~~~~~~~~~~~~
1333 Set the link status monitoring polling period in milliseconds for a bonding device.
1335 This adds support for PMD slave devices which do not support link status interrupts.
1336 When the mon_period is set to a value greater than 0 then all PMD's which do not support
1337 link status ISR will be queried every polling interval to check if their link status has changed::
1339 testpmd> set bonding mon_period (port_id) (value)
1341 For example, to set the link status monitoring polling period of bonded device (port 5) to 150ms::
1343 testpmd> set bonding mon_period 5 150
1349 Show the current configuration of a Link Bonding device::
1351 testpmd> show bonding config (port id)
1354 to show the configuration a Link Bonding device (port 9) with 3 slave devices (1, 3, 4)
1355 in balance mode with a transmission policy of layer 2+3::
1357 testpmd> show bonding config 9
1359 Balance Xmit Policy: BALANCE_XMIT_POLICY_LAYER23
1361 Active Slaves (3): [1 3 4]
1368 The Register Functions can be used to read from and write to registers on the network card referenced by a port number.
1369 This is mainly useful for debugging purposes.
1370 Reference should be made to the appropriate datasheet for the network card for details on the register addresses
1371 and fields that can be accessed.
1376 Display the value of a port register::
1378 testpmd> read reg (port_id) (address)
1380 For example, to examine the Flow Director control register (FDIRCTL, 0x0000EE000) on an Intel 82599 10 GbE Controller::
1382 testpmd> read reg 0 0xEE00
1383 port 0 PCI register at offset 0xEE00: 0x4A060029 (1241907241)
1388 Display a port register bit field::
1390 testpmd> read regfield (port_id) (address) (bit_x) (bit_y)
1392 For example, reading the lowest two bits from the register in the example above::
1394 testpmd> read regfield 0 0xEE00 0 1
1395 port 0 PCI register at offset 0xEE00: bits[0, 1]=0x1 (1)
1400 Display a single port register bit::
1402 testpmd> read regbit (port_id) (address) (bit_x)
1404 For example, reading the lowest bit from the register in the example above::
1406 testpmd> read regbit 0 0xEE00 0
1407 port 0 PCI register at offset 0xEE00: bit 0=1
1412 Set the value of a port register::
1414 testpmd> write reg (port_id) (address) (value)
1416 For example, to clear a register::
1418 testpmd> write reg 0 0xEE00 0x0
1419 port 0 PCI register at offset 0xEE00: 0x00000000 (0)
1424 Set bit field of a port register::
1426 testpmd> write regfield (port_id) (address) (bit_x) (bit_y) (value)
1428 For example, writing to the register cleared in the example above::
1430 testpmd> write regfield 0 0xEE00 0 1 2
1431 port 0 PCI register at offset 0xEE00: 0x00000002 (2)
1436 Set single bit value of a port register::
1438 testpmd> write regbit (port_id) (address) (bit_x) (value)
1440 For example, to set the high bit in the register from the example above::
1442 testpmd> write regbit 0 0xEE00 31 1
1443 port 0 PCI register at offset 0xEE00: 0x8000000A (2147483658)
1449 This section details the available filter functions that are available.
1452 ~~~~~~~~~~~~~~~~~~~~
1454 Add or delete a L2 Ethertype filter, which identify packets by their L2 Ethertype mainly assign them to a receive queue::
1456 ethertype_filter (port_id) (add|del) (mac_addr|mac_ignr) (mac_address) \
1457 ethertype (ether_type) (drop|fwd) queue (queue_id)
1459 The available information parameters are:
1461 * ``port_id``: The port which the Ethertype filter assigned on.
1463 * ``mac_addr``: Compare destination mac address.
1465 * ``mac_ignr``: Ignore destination mac address match.
1467 * ``mac_address``: Destination mac address to match.
1469 * ``ether_type``: The EtherType value want to match,
1470 for example 0x0806 for ARP packet. 0x0800 (IPv4) and 0x86DD (IPv6) are invalid.
1472 * ``queue_id``: The receive queue associated with this EtherType filter.
1473 It is meaningless when deleting or dropping.
1475 Example, to add/remove an ethertype filter rule::
1477 testpmd> ethertype_filter 0 add mac_ignr 00:11:22:33:44:55 \
1478 ethertype 0x0806 fwd queue 3
1480 testpmd> ethertype_filter 0 del mac_ignr 00:11:22:33:44:55 \
1481 ethertype 0x0806 fwd queue 3
1486 Add or delete a 2-tuple filter,
1487 which identifies packets by specific protocol and destination TCP/UDP port
1488 and forwards packets into one of the receive queues::
1490 2tuple_filter (port_id) (add|del) dst_port (dst_port_value) \
1491 protocol (protocol_value) mask (mask_value) \
1492 tcp_flags (tcp_flags_value) priority (prio_value) \
1495 The available information parameters are:
1497 * ``port_id``: The port which the 2-tuple filter assigned on.
1499 * ``dst_port_value``: Destination port in L4.
1501 * ``protocol_value``: IP L4 protocol.
1503 * ``mask_value``: Participates in the match or not by bit for field above, 1b means participate.
1505 * ``tcp_flags_value``: TCP control bits. The non-zero value is invalid, when the pro_value is not set to 0x06 (TCP).
1507 * ``prio_value``: Priority of this filter.
1509 * ``queue_id``: The receive queue associated with this 2-tuple filter.
1511 Example, to add/remove an 2tuple filter rule::
1513 testpmd> 2tuple_filter 0 add dst_port 32 protocol 0x06 mask 0x03 \
1514 tcp_flags 0x02 priority 3 queue 3
1516 testpmd> 2tuple_filter 0 del dst_port 32 protocol 0x06 mask 0x03 \
1517 tcp_flags 0x02 priority 3 queue 3
1522 Add or delete a 5-tuple filter,
1523 which consists of a 5-tuple (protocol, source and destination IP addresses, source and destination TCP/UDP/SCTP port)
1524 and routes packets into one of the receive queues::
1526 5tuple_filter (port_id) (add|del) dst_ip (dst_address) src_ip \
1527 (src_address) dst_port (dst_port_value) \
1528 src_port (src_port_value) protocol (protocol_value) \
1529 mask (mask_value) tcp_flags (tcp_flags_value) \
1530 priority (prio_value) queue (queue_id)
1532 The available information parameters are:
1534 * ``port_id``: The port which the 5-tuple filter assigned on.
1536 * ``dst_address``: Destination IP address.
1538 * ``src_address``: Source IP address.
1540 * ``dst_port_value``: TCP/UDP destination port.
1542 * ``src_port_value``: TCP/UDP source port.
1544 * ``protocol_value``: L4 protocol.
1546 * ``mask_value``: Participates in the match or not by bit for field above, 1b means participate
1548 * ``tcp_flags_value``: TCP control bits. The non-zero value is invalid, when the protocol_value is not set to 0x06 (TCP).
1550 * ``prio_value``: The priority of this filter.
1552 * ``queue_id``: The receive queue associated with this 5-tuple filter.
1554 Example, to add/remove an 5tuple filter rule::
1556 testpmd> 5tuple_filter 0 add dst_ip 2.2.2.5 src_ip 2.2.2.4 \
1557 dst_port 64 src_port 32 protocol 0x06 mask 0x1F \
1558 flags 0x0 priority 3 queue 3
1560 testpmd> 5tuple_filter 0 del dst_ip 2.2.2.5 src_ip 2.2.2.4 \
1561 dst_port 64 src_port 32 protocol 0x06 mask 0x1F \
1562 flags 0x0 priority 3 queue 3
1567 Using the SYN filter, TCP packets whose *SYN* flag is set can be forwarded to a separate queue::
1569 syn_filter (port_id) (add|del) priority (high|low) queue (queue_id)
1571 The available information parameters are:
1573 * ``port_id``: The port which the SYN filter assigned on.
1575 * ``high``: This SYN filter has higher priority than other filters.
1577 * ``low``: This SYN filter has lower priority than other filters.
1579 * ``queue_id``: The receive queue associated with this SYN filter
1583 testpmd> syn_filter 0 add priority high queue 3
1588 With flex filter, packets can be recognized by any arbitrary pattern within the first 128 bytes of the packet
1589 and routed into one of the receive queues::
1591 flex_filter (port_id) (add|del) len (len_value) bytes (bytes_value) \
1592 mask (mask_value) priority (prio_value) queue (queue_id)
1594 The available information parameters are:
1596 * ``port_id``: The port which the Flex filter is assigned on.
1598 * ``len_value``: Filter length in bytes, no greater than 128.
1600 * ``bytes_value``: A string in hexadecimal, means the value the flex filter needs to match.
1602 * ``mask_value``: A string in hexadecimal, bit 1 means corresponding byte participates in the match.
1604 * ``prio_value``: The priority of this filter.
1606 * ``queue_id``: The receive queue associated with this Flex filter.
1610 testpmd> flex_filter 0 add len 16 bytes 0x00000000000000000000000008060000 \
1611 mask 000C priority 3 queue 3
1613 testpmd> flex_filter 0 del len 16 bytes 0x00000000000000000000000008060000 \
1614 mask 000C priority 3 queue 3
1617 .. _testpmd_flow_director:
1619 flow_director_filter
1620 ~~~~~~~~~~~~~~~~~~~~
1622 The Flow Director works in receive mode to identify specific flows or sets of flows and route them to specific queues.
1624 Two types of filtering are supported which are referred to as Perfect Match and Signature filters, the match mode
1625 is set by the ``--pkt-filter-mode`` command-line parameter:
1627 * Perfect match filters.
1628 The hardware checks a match between the masked fields of the received packets and the programmed filters.
1630 * Signature filters.
1631 The hardware checks a match between a hash-based signature of the masked fields of the received packet.
1633 The Flow Director filters can match the different fields for different type of packet: flow type, specific input set
1634 per flow type and the flexible payload.
1636 The Flow Director can also mask out parts of all of these fields so that filters
1637 are only applied to certain fields or parts of the fields.
1639 Different NICs may have different capabilities, command show port fdir (port_id) can be used to acquire the information.
1641 # Commands to add flow director filters of different flow types::
1643 flow_director_filter (port_id) (add|del|update) \
1644 flow (ipv4-other|ipv4-frag|ipv6-other|ipv6-frag)
1645 src (src_ip_address) dst (dst_ip_address) \
1646 vlan (vlan_value) flexbytes (flexbytes_value) \
1647 (drop|fwd) queue (queue_id) fd_id (fd_id_value)
1649 flow_director_filter (port_id) (add|del|update) \
1650 flow (ipv4-tcp|ipv4-udp|ipv6-tcp|ipv6-udp) \
1651 src (src_ip_address) (src_port) \
1652 dst (dst_ip_address) (dst_port) \
1653 vlan (vlan_value) flexbytes (flexbytes_value) \
1654 (drop|fwd) queue (queue_id) fd_id (fd_id_value)
1656 flow_director_filter (port_id) (add|del|update) \
1657 flow (ipv4-sctp|ipv6-sctp) \
1658 src (src_ip_address) (src_port) \
1659 dst (dst_ip_address) (dst_port)
1660 tag (verification_tag) vlan (vlan_value) \
1661 flexbytes (flexbytes_value) (drop|fwd) \
1662 queue (queue_id) fd_id (fd_id_value)
1664 flow_director_filter (port_id) (add|del|update) flow l2_payload \
1665 ether (ethertype) flexbytes (flexbytes_value) \
1666 (drop|fwd) queue (queue_id) fd_id (fd_id_value)
1668 For example, to add an ipv4-udp flow type filter::
1670 testpmd> flow_director_filter 0 add flow ipv4-udp src 2.2.2.3 32 \
1671 dst 2.2.2.5 33 vlan 0x1 flexbytes (0x88,0x48) fwd queue 1 fd_id 1
1673 For example, add an ipv4-other flow type filter::
1675 testpmd> flow_director_filter 0 add flow ipv4-other src 2.2.2.3 \
1676 dst 2.2.2.5 vlan 0x1 flexbytes (0x88,0x48) fwd queue 1 fd_id 1
1681 Flush all flow director filters on a device::
1683 testpmd> flush_flow_director (port_id)
1685 Example, to flush all flow director filter on port 0::
1687 testpmd> flush_flow_director 0
1692 Set flow director's input masks::
1694 flow_director_mask (port_id) vlan (vlan_value) \
1695 src_mask (ipv4_src) (ipv6_src) (src_port) \
1696 dst_mask (ipv4_dst) (ipv6_dst) (dst_port)
1698 Example, to set flow director mask on port 0::
1700 testpmd> flow_director_mask 0 vlan 0xefff \
1701 src_mask 255.255.255.255 \
1702 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 0xFFFF \
1703 dst_mask 255.255.255.255 \
1704 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 0xFFFF
1706 flow_director_flex_mask
1707 ~~~~~~~~~~~~~~~~~~~~~~~
1709 set masks of flow director's flexible payload based on certain flow type::
1711 testpmd> flow_director_flex_mask (port_id) \
1712 flow (none|ipv4-other|ipv4-frag|ipv4-tcp|ipv4-udp|ipv4-sctp| \
1713 ipv6-other|ipv6-frag|ipv6-tcp|ipv6-udp|ipv6-sctp| \
1714 l2_payload|all) (mask)
1716 Example, to set flow director's flex mask for all flow type on port 0::
1718 testpmd> flow_director_flex_mask 0 flow all \
1719 (0xff,0xff,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
1722 flow_director_flex_payload
1723 ~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 Configure flexible payload selection::
1727 flow_director_flex_payload (port_id) (raw|l2|l3|l4) (config)
1729 For example, to select the first 16 bytes from the offset 4 (bytes) of packet's payload as flexible payload::
1731 testpmd> flow_director_flex_payload 0 l4 \
1732 (4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19)
1734 get_sym_hash_ena_per_port
1735 ~~~~~~~~~~~~~~~~~~~~~~~~~
1737 Get symmetric hash enable configuration per port::
1739 get_sym_hash_ena_per_port (port_id)
1741 For example, to get symmetric hash enable configuration of port 1::
1743 testpmd> get_sym_hash_ena_per_port 1
1745 set_sym_hash_ena_per_port
1746 ~~~~~~~~~~~~~~~~~~~~~~~~~
1748 Set symmetric hash enable configuration per port to enable or disable::
1750 set_sym_hash_ena_per_port (port_id) (enable|disable)
1752 For example, to set symmetric hash enable configuration of port 1 to enable::
1754 testpmd> set_sym_hash_ena_per_port 1 enable
1756 get_hash_global_config
1757 ~~~~~~~~~~~~~~~~~~~~~~
1759 Get the global configurations of hash filters::
1761 get_hash_global_config (port_id)
1763 For example, to get the global configurations of hash filters of port 1::
1765 testpmd> get_hash_global_config 1
1767 set_hash_global_config
1768 ~~~~~~~~~~~~~~~~~~~~~~
1770 Set the global configurations of hash filters::
1772 set_hash_global_config (port_id) (toeplitz|simple_xor|default) \
1773 (ipv4|ipv4-frag|ipv4-tcp|ipv4-udp|ipv4-sctp|ipv4-other|ipv6|ipv6-frag| \
1774 ipv6-tcp|ipv6-udp|ipv6-sctp|ipv6-other|l2_payload) \
1777 For example, to enable simple_xor for flow type of ipv6 on port 2::
1779 testpmd> set_hash_global_config 2 simple_xor ipv6 enable