get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1339/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1339,
    "url": "https://patches.dpdk.org/api/patches/1339/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416330293-2947-4-git-send-email-pablo.de.lara.guarch@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1416330293-2947-4-git-send-email-pablo.de.lara.guarch@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1416330293-2947-4-git-send-email-pablo.de.lara.guarch@intel.com",
    "date": "2014-11-18T17:04:52",
    "name": "[dpdk-dev,v2,3/4] doc: Moved commands in testpmd UG to match testpmd command help order",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "3154aa41e90cbc16f1998e4eeb0102dac882a96e",
    "submitter": {
        "id": 9,
        "url": "https://patches.dpdk.org/api/people/9/?format=api",
        "name": "De Lara Guarch, Pablo",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1416330293-2947-4-git-send-email-pablo.de.lara.guarch@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/1339/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/1339/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 23E547E75;\n\tTue, 18 Nov 2014 17:55:08 +0100 (CET)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 817E77E70\n\tfor <dev@dpdk.org>; Tue, 18 Nov 2014 17:55:01 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga103.jf.intel.com with ESMTP; 18 Nov 2014 09:02:17 -0800",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga002.jf.intel.com with ESMTP; 18 Nov 2014 09:04:57 -0800",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tsAIH4ueX018118; Tue, 18 Nov 2014 17:04:56 GMT",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id sAIH4usN003269;\n\tTue, 18 Nov 2014 17:04:56 GMT",
            "(from pdelarax@localhost)\n\tby sivswdev01.ir.intel.com with  id sAIH4u4Y003265;\n\tTue, 18 Nov 2014 17:04:56 GMT"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.07,410,1413270000\"; d=\"scan'208\";a=\"639089792\"",
        "From": "Pablo de Lara <pablo.de.lara.guarch@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Tue, 18 Nov 2014 17:04:52 +0000",
        "Message-Id": "<1416330293-2947-4-git-send-email-pablo.de.lara.guarch@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1416330293-2947-1-git-send-email-pablo.de.lara.guarch@intel.com>",
        "References": "<1416078796-689-1-git-send-email-pablo.de.lara.guarch@intel.com>\n\t<1416330293-2947-1-git-send-email-pablo.de.lara.guarch@intel.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] =?utf-8?q?=5BPATCH_v2_3/4=5D_doc=3A_Moved_commands_in_?=\n\t=?utf-8?q?testpmd_UG_to_match_testpmd_command_help_order?=",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Moved commands in testpmd UG to set queue rates\nto match order in testpmd command help.\n\nCreated new section \"Filters\" to match that\nsame section in testpmd UG, and moved all\ncommands related to it there.\n\nSigned-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\n---\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 1019 ++++++++++++++-------------\n 1 files changed, 512 insertions(+), 507 deletions(-)",
    "diff": "diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex cec99dc..8030f3b 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -435,20 +435,6 @@ Remove a VLAN ID, from the set of VLAN identifiers filtered for VF(s) for port I\n \n rx_vlan rm (vlan_id) port (port_id) vf (vf_mask)\n \n-tx_rate (for Queue)\n-~~~~~~~~~~~~~~~~~~~\n-\n-Set TX rate limitation for queue of a port ID:\n-\n-set port (port_id) queue (queue_id) rate (rate_value)\n-\n-tx_rate (for VF)\n-~~~~~~~~~~~~~~~~\n-\n-Set TX rate limitation for queues in VF of a port ID:\n-\n-set port (port_id) vf (vf_id) rate (rate_value) queue_mask (queue_mask)\n-\n rx_vlan set tpid\n ~~~~~~~~~~~~~~~~\n \n@@ -698,6 +684,20 @@ The available receive modes are:\n \n *  MPE: accepts all multicast packets\n \n+set port - tx_rate (for Queue)\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Set TX rate limitation for queue of a port ID:\n+\n+set port (port_id) queue (queue_id) rate (rate_value)\n+\n+set port - tx_rate (for VF)\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Set TX rate limitation for queues in VF of a port ID:\n+\n+set port (port_id) vf (vf_id) rate (rate_value) queue_mask (queue_mask)\n+\n set port - mirror rule\n ~~~~~~~~~~~~~~~~~~~~~~\n \n@@ -764,884 +764,889 @@ Show the bypass configuration for a bypass enabled NIC using the lowest port on\n \n show bypass config (port_id)\n \n-add_ethertype_filter\n-~~~~~~~~~~~~~~~~~~~~\n+set link up\n+~~~~~~~~~~~\n \n-Add a L2 Ethertype filter, which identify packets by their L2 Ethertype mainly assign them to a receive queue.\n+Set link up for a port.\n \n-add_ethertype_filter (port_id) ethertype (eth_value) priority (enable|disable) (pri_value) queue (queue_id) index (idx)\n+set link-up port (port id)\n \n-The available information parameters are:\n+set link down\n+~~~~~~~~~~~~~\n \n-*   port_id:  the port which the Ethertype filter assigned on.\n+Set link down for a port.\n \n-*   eth_value: the EtherType value want to match,\n-    for example 0x0806 for ARP packet. 0x0800 (IPv4) and 0x86DD (IPv6) are invalid.\n+set link-down port (port id)\n \n-*   enable: user priority participates in the match.\n+Port Functions\n+--------------\n \n-*   disable: user priority doesn't participate in the match.\n+The following sections show functions for configuring ports.\n \n-*   pri_value: user priority value that want to match.\n+.. note::\n \n-*   queue_id : The receive queue associated with this EtherType filter\n+    Port configuration changes only become active when forwarding is started/restarted.\n \n-*   index: the index of this EtherType filter\n+port start\n+~~~~~~~~~~\n \n-Example:\n+Start all ports or a specific port:\n \n-.. code-block:: console\n+port start (port_id|all)\n \n-    testpmd> add_ethertype_filter 0 ethertype 0x0806 priority disable 0 queue 3 index 0\n-    Assign ARP packet to receive queue 3\n+port stop\n+~~~~~~~~~\n \n-remove_ethertype_filter\n-~~~~~~~~~~~~~~~~~~~~~~~\n+Stop all ports or a specific port:\n \n-Remove a L2 Ethertype filter\n+port stop (port_id|all)\n \n-remove_ethertype_filter (port_id) index (idx)\n+port close\n+~~~~~~~~~~\n \n-get_ethertype_filter\n-~~~~~~~~~~~~~~~~~~~~\n+Close all ports or a specific port:\n \n-Get and display a L2 Ethertype filter\n+port close (port_id|all)\n \n-get_ethertype_filter (port_id) index (idx)\n+port start/stop queue\n+~~~~~~~~~~~~~~~~~~~~~\n \n-Example:\n+Start/stop a rx/tx queue on a specific port:\n \n-.. code-block:: console\n+port (port_id) (rxq|txq) (queue_id) (start|stop)\n \n-    testpmd> get_ethertype_filter 0 index 0\n+Only take effect when port is started.\n \n-    filter[0]:\n-        ethertype: 0x0806\n-        priority: disable, 0\n-        queue: 3\n+port config - speed\n+~~~~~~~~~~~~~~~~~~~\n \n-add_2tuple_filter\n-~~~~~~~~~~~~~~~~~\n+Set the speed and duplex mode for all ports or a specific port:\n \n-Add a 2-tuple filter,\n-which identify packets by specific protocol and destination TCP/UDP port\n-and forwards packets into one of the receive queues.\n+port config (port_id|all) speed (10|100|1000|10000|auto) duplex (half|full|auto)\n \n-add_2tuple_filter (port_id) protocol (pro_value) (pro_mask) dst_port (port_value) (port_mask)\n-flags (flg_value) priority (prio_value) queue (queue_id) index (idx)\n+port config - queues/descriptors\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-The available information parameters are:\n+Set number of queues/descriptors for rxq, txq, rxd and txd:\n \n-*   port_id: the port which the 2-tuple filter assigned on.\n+port config all (rxq|txq|rxd|txd) (value)\n \n-*   pro_value: IP L4 protocol\n+This is equivalent to the --rxq, --txq, --rxd and --txd command-line options.\n \n-*   pro_mask: protocol participates in the match or not, 1 means participate\n+port config - max-pkt-len\n+~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-*   port_value: destination port in L4.\n+Set the maximum packet length:\n \n-*   port_mask: destination port participates in the match or not, 1 means participate.\n+port config all max-pkt-len (value)\n \n-*   flg_value: TCP control bits. The non-zero value is invalid, when the pro_value is not set to 0x06 (TCP).\n+This is equivalent to the --max-pkt-len command-line option.\n \n-*   prio_value: the priority of this filter.\n+port config - CRC Strip\n+~~~~~~~~~~~~~~~~~~~~~~~\n \n-*   queue_id: The receive queue associated with this 2-tuple filter\n+Set hardware CRC stripping on or off for all ports:\n \n-*   index: the index of this 2-tuple filter\n+port config all crc-strip (on|off)\n \n-Example:\n+CRC stripping is off by default.\n \n-.. code-block:: console\n+The on option is equivalent to the --crc-strip command-line option.\n \n-    testpmd> add_2tuple_filter 0 protocol 0x06 1 dst_port 32 1 flags 0x02 priority 3 queue 3 index 0\n+port config - RX Checksum\n+~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-remove_2tuple_filter\n-~~~~~~~~~~~~~~~~~~~~\n+Set hardware RX checksum offload to on or off for all ports:\n \n-Remove a 2-tuple filter\n+port config all rx-cksum (on|off)\n \n-remove_2tuple_filter (port_id) index (idx)\n+Checksum offload is off by default.\n \n-get_2tuple_filter\n-~~~~~~~~~~~~~~~~~\n+The on option is equivalent to the --enable-rx-cksum command-line option.\n \n-Get and display a 2-tuple filter\n+port config - VLAN\n+~~~~~~~~~~~~~~~~~~\n \n-get_2tuple_filter (port_id) index (idx)\n+Set hardware VLAN on or off for all ports:\n \n-Example:\n+port config all hw-vlan (on|off)\n \n-.. code-block:: console\n+Hardware VLAN is on by default.\n \n-    testpmd> get_2tuple_filter 0 index 0\n+The off option is equivalent to the --disable-hw-vlan command-line option.\n \n-    filter[0]:\n-        Destination Port: 0x0020 mask: 1\n-        protocol: 0x06 mask:1 tcp_flags: 0x02\n-        priority: 3   queue: 3\n+port config - Drop Packets\n+~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-add_5tuple_filter\n-~~~~~~~~~~~~~~~~~\n+Set packet drop for packets with no descriptors on or off for all ports:\n \n-Add a 5-tuple filter,\n-which consists of a 5-tuple (protocol, source and destination IP addresses, source and destination TCP/UDP/SCTP port)\n-and routes packets into one of the receive queues.\n+port config all drop-en (on|off)\n \n-add_5tuple_filter (port_id) dst_ip (dst_address) src_ip (src_address) dst_port (dst_port_value) src_port (src_port_value)\n-protocol (protocol_value) mask (mask_value) flags (flags_value) priority (prio_value) queue (queue_id) index (idx)\n+Packet dropping for packets with no descriptors is off by default.\n \n-The available information parameters are:\n+The on option is equivalent to the --enable-drop-en command-line option.\n \n-*   port_id: the port which the 5-tuple filter assigned on.\n+port config - RSS\n+~~~~~~~~~~~~~~~~~\n \n-*   dst_address: destination IP address.\n+Set the RSS (Receive Side Scaling) mode on or off:\n \n-*   src_address: source IP address.\n+port config all rss (ip|udp|none)\n \n-*   dst_port_value: TCP/UDP destination port.\n+RSS is on by default.\n \n-*   src_port_value: TCP/UDP source port.\n+The off option is equivalent to the --disable-rss command-line option.\n \n-*   protocol_value: L4 protocol.\n+port config - RSS Reta\n+~~~~~~~~~~~~~~~~~~~~~~\n \n-*   mask_value: participates in the match or not by bit for field above, 1b means participate\n+Set the RSS (Receive Side Scaling) redirection table:\n \n-*   flags_value: TCP control bits. The non-zero value is invalid, when the protocol_value is not set to 0x06 (TCP).\n+port config all rss reta (hash,queue)[,(hash,queue)]\n \n-*   prio_value: the priority of this filter.\n+port config - DCB\n+~~~~~~~~~~~~~~~~~\n \n-*   queue_id: The receive queue associated with this 5-tuple filter.\n+Set the DCB mode for an individual port:\n \n-*   index: the index of this 5-tuple filter\n+port config (port_id) dcb vt (on|off) (traffic_class) pfc (on|off)\n \n-Example:\n+The traffic class should be 4 or 8.\n \n-.. code-block:: console\n+port config - Burst\n+~~~~~~~~~~~~~~~~~~~\n \n-    testpmd> add_5tuple_filter 1 dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 64 src_port 32 protocol 0x06 mask 0x1F flags 0x0 priority 3 queue 3 index 0\n+Set the number of packets per burst:\n \n-remove_5tuple_filter\n-~~~~~~~~~~~~~~~~~~~~\n+port config all burst (value)\n \n-Remove a 5-tuple filter\n+This is equivalent to the --burst command-line option.\n \n-remove_5tuple_filter (port_id) index (idx)\n+port config - Threshold\n+~~~~~~~~~~~~~~~~~~~~~~~\n \n-get_5tuple_filter\n-~~~~~~~~~~~~~~~~~\n+Set thresholds for TX/RX queues:\n \n-Get and display a 5-tuple filter\n+port config all (threshold) (value)\n \n-get_5tuple_filter (port_id) index (idx)\n+Where the threshold type can be:\n \n-Example:\n+*   txpt: Set the prefetch threshold register of the TX rings, 0 <= value <= 255.\n \n-.. code-block:: console\n+*   txht: Set the host threshold register of the TX rings, 0 <= value <= 255.\n \n-    testpmd> get_5tuple_filter 1 index 0\n+*   txwt: Set the write-back threshold register of the TX rings, 0 <= value <= 255.\n \n-    filter[0]:\n-        Destination IP: 0x02020205 mask: 1\n-        Source IP: 0x02020204 mask: 1\n-        Destination Port: 0x0040 mask: 1\n-        Source Port: 0x0020 mask: 1\n-        protocol: 0x06 mask: 1\n-        priority: 3 flags: 0x00 queue: 3\n+*   rxpt: Set the prefetch threshold register of the RX rings, 0 <= value <= 255.\n \n-add_syn_filter\n-~~~~~~~~~~~~~~\n+*   rxht: Set the host threshold register of the RX rings, 0 <= value <= 255.\n \n-Add SYN filter, which can forward TCP packets whose *SYN* flag is set into a separate queue.\n+*   rxwt: Set the write-back threshold register of the RX rings, 0 <= value <= 255.\n \n-add_syn_filter (port_id) priority (high|low) queue (queue_id)\n+*   txfreet: Set the transmit free threshold of the TX rings, 0 <= value <= txd.\n \n-The available information parameters are:\n+*   rxfreet: Set the transmit free threshold of the RX rings, 0 <= value <= rxd.\n \n-*   port_id: the port which the SYN filter assigned on.\n+*   txrst: Set the transmit RS bit threshold of TX rings, 0 <= value <= txd.\n+    These threshold options are also available from the command-line.\n \n-*   high: this SYN filter has higher priority than other filters.\n+Flow Director Functions\n+-----------------------\n \n-*   low: this SYN filter has lower priority than other filters.\n+The Flow Director works in receive mode to identify specific flows or sets of flows and route them to specific queues.\n \n-*   queue_id: The receive queue associated with this SYN filter\n+Two types of filtering are supported which are referred to as Perfect Match and Signature filters:\n \n-Example:\n+*   Perfect match filters.\n+    The hardware checks a match between the masked fields of the received packets and the programmed filters.\n \n-.. code-block:: console\n+*   Signature filters.\n+    The hardware checks a match between a hash-based signature of the masked fields of the received packet.\n \n-    testpmd> add_syn_filter 0 priority high queue 3,\n+The Flow Director filters can match the following fields in a packet:\n \n-remove_syn_filter\n-~~~~~~~~~~~~~~~~~\n+*   Source IP and destination IP addresses.\n \n-Remove SYN filter\n+*   Source port and destination port numbers (for UDP and TCP packets).\n \n-remove_syn_filter (port_id)\n+*   IPv4/IPv6 and UDP/ TCP/SCTP protocol match.\n \n-get_syn_filter\n-~~~~~~~~~~~~~~\n+*   VLAN header.\n \n-Get and display SYN filter\n+*   Flexible 2-byte tuple match anywhere in the first 64 bytes of the packet.\n \n-get_syn_filter (port_id)\n+The Flow Director can also mask out parts of all of these fields so that filters are only applied to certain fields\n+or parts of the fields.\n+For example it is possible to mask out sub-nets of IP addresses or to ignore VLAN headers.\n \n-Example:\n+In the following sections, several common parameters are used in the Flow Director filters.\n+These are explained below:\n \n-.. code-block:: console\n+*   src: A pair of source address values. The source IP, in IPv4 or IPv6 format, and the source port:\n \n-    testpmd> get_syn_filter 0\n+    src 192.168.0.1 1024\n \n-    syn filter: on, priority: high, queue: 3\n+    src 2001:DB8:85A3:0:0:8A2E:370:7000 1024\n \n-add_flex_filter\n-~~~~~~~~~~~~~~~\n+*   dst: A pair of destination address values. The destination IP, in IPv4 or IPv6 format, and the destination port.\n \n-Add a Flex filter,\n-which recognizes any arbitrary pattern within the first 128 bytes of the packet\n-and routes packets into one of the receive queues.\n+*   flexbytes: A 2-byte tuple to be matched within the first 64 bytes of a packet.\n \n-add_flex_filter (port_id) len (len_value) bytes (bytes_string) mask (mask_value)\n-priority (prio_value) queue (queue_id) index (idx)\n+The offset where the match occurs is set by the --pkt-filter-flexbytes-offset command-line parameter\n+and is counted from the first byte of the destination Ethernet MAC address.\n+The default offset is 0xC bytes, which is the \"Type\" word in the MAC header.\n+Typically, the flexbyte value is set to 0x0800 to match the IPv4 MAC type or 0x86DD to match IPv6.\n+These values change when a VLAN tag is added.\n \n-The available information parameters are:\n+*   vlan: The VLAN header to match in the packet.\n \n-*   port_id: the port which the Flex filter assigned on.\n+*   queue: The index of the RX queue to route matched packets to.\n \n-*   len_value: filter length in byte, no greater than 128.\n+*   soft: The 16-bit value in the MBUF flow director ID field for RX packets matching the filter.\n \n-*   bytes_string: a sting in format of octal, means the value the flex filter need to match.\n+add_signature_filter\n+~~~~~~~~~~~~~~~~~~~~\n \n-*   mask_value: a sting in format of octal, bit 1 means corresponding byte in DWORD participates in the match.\n+Add a signature filter:\n \n-*   prio_value: the priority of this filter.\n+# Command is displayed on several lines for clarity.\n \n-*   queue_id: The receive queue associated with this Flex filter.\n+add_signature_filter (port_id) (ip|udp|tcp|sctp)\n \n-*   index: the index of this Flex filter\n+    src (src_ip_address) (src_port)\n \n-Example:\n+    dst (dst_ip_address) (dst_port)\n \n-.. code-block:: console\n+    flexbytes (flexbytes_values)\n \n-   testpmd> add_flex_filter 0 len 16 bytes 0x00000000000000000000000008060000 mask 000C priority 3 queue 3 index 0\n+    vlan (vlan_id) queue (queue_id)\n \n-Assign a packet whose 13th and 14th bytes are 0x0806 to queue 3.\n+upd_signature_filter\n+~~~~~~~~~~~~~~~~~~~~\n \n-remove_flex_filter\n-~~~~~~~~~~~~~~~~~~\n+Update a signature filter:\n \n-Remove a Flex filter\n+# Command is displayed on several lines for clarity.\n \n-remove_flex_filter (port_id) index (idx)\n+upd_signature_filter (port_id) (ip|udp|tcp|sctp)\n \n-get_flex_filter\n-~~~~~~~~~~~~~~~\n+    src (src_ip_address) (src_port)\n \n-Get and display a Flex filter\n+    dst (dst_ip_address) (dst_port)\n \n-get_flex_filter (port_id) index (idx)\n+    flexbytes (flexbytes_values)\n \n-Example:\n+    vlan (vlan_id) queue (queue_id)\n \n-.. code-block:: console\n+rm_signature_filter\n+~~~~~~~~~~~~~~~~~~~\n \n-    testpmd> get_flex_filter 0 index 0\n+Remove a signature filter:\n \n-    filter[0]:\n+# Command is displayed on several lines for clarity.\n \n-        length: 16\n+rm_signature_filter (port_id) (ip|udp|tcp|sctp)\n \n-        dword[]: 0x00000000 00000000 00000000 08060000 00000000 00000000 00000000\n-    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000\n-    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000\n-    00000000 00000000 00000000 00000000 00000000 00000000 00000000\n+    src (src_ip_address) (src_port)\n \n-        mask[]:\n-    0b0000000000001100000000000000000000000000000000000000000000000000000000\n-    0000000000000000000000000000000000000000000000000000000000\n+    dst (dst_ip_address) (dst_port)\n \n-        priority: 3   queue: 3\n+    flexbytes (flexbytes_values)\n \n-set link up\n-~~~~~~~~~~~\n+    vlan (vlan_id)\n \n-Set link up for a port.\n+add_perfect_filter\n+~~~~~~~~~~~~~~~~~~\n \n-set link-up port (port id)\n+Add a perfect filter:\n \n-set link down\n-~~~~~~~~~~~~~\n+# Command is displayed on several lines for clarity.\n \n-Set link down for a port.\n+add_perfect_filter (port_id) (ip|udp|tcp|sctp)\n \n-set link-down port (port id)\n+    src (src_ip_address) (src_port)\n \n-Port Functions\n---------------\n+    dst (dst_ip_address) (dst_port)\n \n-The following sections show functions for configuring ports.\n+    flexbytes (flexbytes_values)\n \n-.. note::\n+    vlan (vlan_id) queue (queue_id) soft (soft_id)\n \n-    Port configuration changes only become active when forwarding is started/restarted.\n+upd_perfect_filter\n+~~~~~~~~~~~~~~~~~~\n \n-port start\n-~~~~~~~~~~\n+Update a perfect filter:\n \n-Start all ports or a specific port:\n+# Command is displayed on several lines for clarity.\n \n-port start (port_id|all)\n+upd_perfect_filter (port_id) (ip|udp|tcp|sctp)\n \n-port stop\n-~~~~~~~~~\n+    src (src_ip_address) (src_port)\n \n-Stop all ports or a specific port:\n+    dst (dst_ip_address) (dst_port)\n \n-port stop (port_id|all)\n+    flexbytes (flexbytes_values)\n \n-port close\n-~~~~~~~~~~\n+    vlan (vlan_id) queue (queue_id)\n \n-Close all ports or a specific port:\n+rm_perfect_filter\n+~~~~~~~~~~~~~~~~~\n \n-port close (port_id|all)\n+Remove a perfect filter:\n \n-port start/stop queue\n-~~~~~~~~~~~~~~~~~~~~~\n+rm_perfect_filter (port_id) (ip|udp|tcp|sctp)\n \n-Start/stop a rx/tx queue on a specific port:\n+    src (src_ip_address) (src_port)\n \n-port (port_id) (rxq|txq) (queue_id) (start|stop)\n+    dst (dst_ip_address) (dst_port)\n \n-Only take effect when port is started.\n+    flexbytes (flexbytes_values)\n \n-port config - speed\n-~~~~~~~~~~~~~~~~~~~\n+    vlan (vlan_id) soft (soft_id)\n \n-Set the speed and duplex mode for all ports or a specific port:\n+set_masks_filter\n+~~~~~~~~~~~~~~~~\n \n-port config (port_id|all) speed (10|100|1000|10000|auto) duplex (half|full|auto)\n+Set IPv4 filter masks:\n \n-port config - queues/descriptors\n-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+# Command is displayed on several lines for clarity.\n \n-Set number of queues/descriptors for rxq, txq, rxd and txd:\n+set_masks_filter (port_id) only_ip_flow (0|1)\n \n-port config all (rxq|txq|rxd|txd) (value)\n+    src_mask (ip_src_mask) (src_port_mask)\n \n-This is equivalent to the --rxq, --txq, --rxd and --txd command-line options.\n+    dst_mask (ip_dst_mask) (dst_port_mask)\n \n-port config - max-pkt-len\n-~~~~~~~~~~~~~~~~~~~~~~~~~\n+    flexbytes (0|1) vlan_id (0|1) vlan_prio (0|1)\n \n-Set the maximum packet length:\n+set_ipv6_masks_filter\n+~~~~~~~~~~~~~~~~~~~~~\n \n-port config all max-pkt-len (value)\n+Set IPv6 filter masks:\n \n-This is equivalent to the --max-pkt-len command-line option.\n+# Command is displayed on several lines for clarity.\n \n-port config - CRC Strip\n-~~~~~~~~~~~~~~~~~~~~~~~\n+set_ipv6_masks_filter (port_id) only_ip_flow (0|1)\n \n-Set hardware CRC stripping on or off for all ports:\n+    src_mask (ip_src_mask) (src_port_mask)\n \n-port config all crc-strip (on|off)\n+    dst_mask (ip_dst_mask) (dst_port_mask)\n \n-CRC stripping is off by default.\n+    flexbytes (0|1) vlan_id (0|1) vlan_prio (0|1)\n \n-The on option is equivalent to the --crc-strip command-line option.\n+    compare_dst (0|1)\n \n-port config - RX Checksum\n-~~~~~~~~~~~~~~~~~~~~~~~~~\n+Link Bonding Functions\n+----------------------\n \n-Set hardware RX checksum offload to on or off for all ports:\n+The Link Bonding functions make it possible to dynamically create and\n+manage link bonding devices from within testpmd interactive prompt.\n \n-port config all rx-cksum (on|off)\n+create bonded device\n+~~~~~~~~~~~~~~~~~~~~\n \n-Checksum offload is off by default.\n+Create a new bonding device:\n \n-The on option is equivalent to the --enable-rx-cksum command-line option.\n+create bonded device (mode) (socket)\n \n-port config - VLAN\n-~~~~~~~~~~~~~~~~~~\n+For example, to create a bonded device in mode 1 on socket 0.\n \n-Set hardware VLAN on or off for all ports:\n+.. code-block:: console\n \n-port config all hw-vlan (on|off)\n+    testpmd> create bonded 1 0\n+    created new bonded device (port X)\n \n-Hardware VLAN is on by default.\n+add bonding slave\n+~~~~~~~~~~~~~~~~~\n \n-The off option is equivalent to the --disable-hw-vlan command-line option.\n+Adds Ethernet device to a Link Bonding device:\n \n-port config - Drop Packets\n-~~~~~~~~~~~~~~~~~~~~~~~~~~\n+add bonding slave (slave id) (port id)\n \n-Set packet drop for packets with no descriptors on or off for all ports:\n+For example, to add Ethernet device (port 6) to a Link Bonding device (port 10).\n \n-port config all drop-en (on|off)\n+.. code-block:: console\n \n-Packet dropping for packets with no descriptors is off by default.\n+    testpmd> add bonding slave 6 10\n \n-The on option is equivalent to the --enable-drop-en command-line option.\n \n-port config - RSS\n-~~~~~~~~~~~~~~~~~\n+remove bonding slave\n+~~~~~~~~~~~~~~~~~~~~\n \n-Set the RSS (Receive Side Scaling) mode on or off:\n+Removes an Ethernet slave device from a Link Bonding device:\n \n-port config all rss (ip|udp|none)\n+remove bonding slave (slave id) (port id)\n \n-RSS is on by default.\n+For example, to remove Ethernet slave device (port 6) to a Link Bonding device (port 10).\n \n-The off option is equivalent to the --disable-rss command-line option.\n+.. code-block:: console\n \n-port config - RSS Reta\n-~~~~~~~~~~~~~~~~~~~~~~\n+    testpmd> remove bonding slave 6 10\n \n-Set the RSS (Receive Side Scaling) redirection table:\n+set bonding mode\n+~~~~~~~~~~~~~~~~\n \n-port config all rss reta (hash,queue)[,(hash,queue)]\n+Set the Link Bonding mode of a Link Bonding device:\n \n-port config - DCB\n-~~~~~~~~~~~~~~~~~\n+set bonding mode (value) (port id)\n \n-Set the DCB mode for an individual port:\n+For example, to set the bonding mode of a Link Bonding device (port 10) to broadcast (mode 3).\n \n-port config (port_id) dcb vt (on|off) (traffic_class) pfc (on|off)\n+.. code-block:: console\n \n-The traffic class should be 4 or 8.\n+    testpmd> set bonding mode 3 10\n \n-port config - Burst\n+set bonding primary\n ~~~~~~~~~~~~~~~~~~~\n \n-Set the number of packets per burst:\n-\n-port config all burst (value)\n-\n-This is equivalent to the --burst command-line option.\n+Set an Ethernet slave device as the primary device on a Link Bonding device:\n \n-port config - Threshold\n-~~~~~~~~~~~~~~~~~~~~~~~\n+set bonding primary (slave id) (port id)\n \n-Set thresholds for TX/RX queues:\n+For example, to set the Ethernet slave device (port 6) as the primary port of a Link Bonding device (port 10).\n \n-port config all (threshold) (value)\n+.. code-block:: console\n \n-Where the threshold type can be:\n+    testpmd> set bonding primary 6 10\n \n-*   txpt: Set the prefetch threshold register of the TX rings, 0 <= value <= 255.\n+set bonding mac\n+~~~~~~~~~~~~~~~\n \n-*   txht: Set the host threshold register of the TX rings, 0 <= value <= 255.\n+Set the MAC address of a Link Bonding device:\n \n-*   txwt: Set the write-back threshold register of the TX rings, 0 <= value <= 255.\n+set bonding mac (port id) (mac)\n \n-*   rxpt: Set the prefetch threshold register of the RX rings, 0 <= value <= 255.\n+For example, to set the MAC address of a Link Bonding device (port 10) to 00:00:00:00:00:01\n \n-*   rxht: Set the host threshold register of the RX rings, 0 <= value <= 255.\n+.. code-block:: console\n \n-*   rxwt: Set the write-back threshold register of the RX rings, 0 <= value <= 255.\n+    testpmd> set bonding mac 10 00:00:00:00:00:01\n \n-*   txfreet: Set the transmit free threshold of the TX rings, 0 <= value <= txd.\n+set bonding xmit_balance_policy\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-*   rxfreet: Set the transmit free threshold of the RX rings, 0 <= value <= rxd.\n+Set the transmission policy for a Link Bonding device when it is in Balance XOR mode:\n \n-*   txrst: Set the transmit RS bit threshold of TX rings, 0 <= value <= txd.\n-    These threshold options are also available from the command-line.\n+set bonding xmit_balance_policy (port_id) (l2|l23|l34)\n \n-Flow Director Functions\n------------------------\n+For example, set a Link Bonding device (port 10) to use a balance policy of layer 3+4 (IP addresses & UDP ports )\n \n-The Flow Director works in receive mode to identify specific flows or sets of flows and route them to specific queues.\n+.. code-block:: console\n \n-Two types of filtering are supported which are referred to as Perfect Match and Signature filters:\n+    testpmd> set bonding xmit_balance_policy 10 l34\n \n-*   Perfect match filters.\n-    The hardware checks a match between the masked fields of the received packets and the programmed filters.\n+show bonding config\n+~~~~~~~~~~~~~~~~~~~\n \n-*   Signature filters.\n-    The hardware checks a match between a hash-based signature of the masked fields of the received packet.\n+Show the current configuration of a Link Bonding device:\n \n-The Flow Director filters can match the following fields in a packet:\n+show bonding config (port id)\n \n-*   Source IP and destination IP addresses.\n+For example,\n+to show the configuration a Link Bonding device (port 9) with 3 slave devices (1, 3, 4)\n+in balance mode with a transmission policy of layer 2+3.\n \n-*   Source port and destination port numbers (for UDP and TCP packets).\n+.. code-block:: console\n \n-*   IPv4/IPv6 and UDP/ TCP/SCTP protocol match.\n+    testpmd> show bonding config 9\n+        Bonding mode: 2\n+        Balance Xmit Policy: BALANCE_XMIT_POLICY_LAYER23\n+        Slaves (3): [1 3 4]\n+        Active Slaves (3): [1 3 4]\n+        Primary: [3]\n \n-*   VLAN header.\n+Register Functions\n+------------------\n \n-*   Flexible 2-byte tuple match anywhere in the first 64 bytes of the packet.\n+The Register functions can be used to read from and write to registers on the network card referenced by a port number.\n+This is mainly useful for debugging purposes.\n+Reference should be made to the appropriate datasheet for the network card for details on the register addresses\n+and fields that can be accessed.\n \n-The Flow Director can also mask out parts of all of these fields so that filters are only applied to certain fields\n-or parts of the fields.\n-For example it is possible to mask out sub-nets of IP addresses or to ignore VLAN headers.\n+read reg\n+~~~~~~~~\n \n-In the following sections, several common parameters are used in the Flow Director filters.\n-These are explained below:\n+Display the value of a port register:\n \n-*   src: A pair of source address values. The source IP, in IPv4 or IPv6 format, and the source port:\n+read reg (port_id) (address)\n \n-    src 192.168.0.1 1024\n+For example, to examine the Flow Director control register (FDIRCTL, 0x0000EE000) on an Intel® 82599 10 GbE Controller:\n \n-    src 2001:DB8:85A3:0:0:8A2E:370:7000 1024\n+.. code-block:: console\n \n-*   dst: A pair of destination address values. The destination IP, in IPv4 or IPv6 format, and the destination port.\n+    testpmd> read reg 0 0xEE00\n+    port 0 PCI register at offset 0xEE00: 0x4A060029 (1241907241)\n \n-*   flexbytes: A 2-byte tuple to be matched within the first 64 bytes of a packet.\n+read regfield\n+~~~~~~~~~~~~~\n \n-The offset where the match occurs is set by the --pkt-filter-flexbytes-offset command-line parameter\n-and is counted from the first byte of the destination Ethernet MAC address.\n-The default offset is 0xC bytes, which is the \"Type\" word in the MAC header.\n-Typically, the flexbyte value is set to 0x0800 to match the IPv4 MAC type or 0x86DD to match IPv6.\n-These values change when a VLAN tag is added.\n+Display a port register bit field:\n \n-*   vlan: The VLAN header to match in the packet.\n+read regfield (port_id) (address) (bit_x) (bit_y)\n \n-*   queue: The index of the RX queue to route matched packets to.\n+For example, reading the lowest two bits from the register in the example above:\n \n-*   soft: The 16-bit value in the MBUF flow director ID field for RX packets matching the filter.\n+.. code-block:: console\n \n-add_signature_filter\n-~~~~~~~~~~~~~~~~~~~~\n+    testpmd> read regfield 0 0xEE00 0 1\n+    port 0 PCI register at offset 0xEE00: bits[0, 1]=0x1 (1)\n \n-Add a signature filter:\n+read regbit\n+~~~~~~~~~~~\n \n-# Command is displayed on several lines for clarity.\n+Display a single port register bit:\n \n-add_signature_filter (port_id) (ip|udp|tcp|sctp)\n+read regbit (port_id) (address) (bit_x)\n \n-    src (src_ip_address) (src_port)\n+For example, reading the lowest bit from the register in the example above:\n \n-    dst (dst_ip_address) (dst_port)\n+.. code-block:: console\n \n-    flexbytes (flexbytes_values)\n+    testpmd> read regbit 0 0xEE00 0\n+    port 0 PCI register at offset 0xEE00: bit 0=1\n \n-    vlan (vlan_id) queue (queue_id)\n+write reg\n+~~~~~~~~~\n \n-upd_signature_filter\n-~~~~~~~~~~~~~~~~~~~~\n+Set the value of a port register:\n \n-Update a signature filter:\n+write reg (port_id) (address) (value)\n \n-# Command is displayed on several lines for clarity.\n+For example, to clear a register:\n \n-upd_signature_filter (port_id) (ip|udp|tcp|sctp)\n+.. code-block:: console\n \n-    src (src_ip_address) (src_port)\n+    testpmd> write reg 0 0xEE00 0x0\n+    port 0 PCI register at offset 0xEE00: 0x00000000 (0)\n \n-    dst (dst_ip_address) (dst_port)\n+write regfield\n+~~~~~~~~~~~~~~\n \n-    flexbytes (flexbytes_values)\n+Set bit field of a port register:\n \n-    vlan (vlan_id) queue (queue_id)\n+write regfield (port_id) (address) (bit_x) (bit_y) (value)\n \n-rm_signature_filter\n-~~~~~~~~~~~~~~~~~~~\n+For example, writing to the register cleared in the example above:\n \n-Remove a signature filter:\n+.. code-block:: console\n \n-# Command is displayed on several lines for clarity.\n+    testpmd> write regfield 0 0xEE00 0 1 2\n+    port 0 PCI register at offset 0xEE00: 0x00000002 (2)\n \n-rm_signature_filter (port_id) (ip|udp|tcp|sctp)\n+write regbit\n+~~~~~~~~~~~~\n \n-    src (src_ip_address) (src_port)\n+Set single bit value of a port register:\n \n-    dst (dst_ip_address) (dst_port)\n+write regbit (port_id) (address) (bit_x) (value)\n \n-    flexbytes (flexbytes_values)\n+For example, to set the high bit in the register from the example above:\n \n-    vlan (vlan_id)\n+.. code-block:: console\n \n-add_perfect_filter\n-~~~~~~~~~~~~~~~~~~\n+    testpmd> write regbit 0 0xEE00 31 1\n+    port 0 PCI register at offset 0xEE00: 0x8000000A (2147483658)\n \n-Add a perfect filter:\n+Filter Functions\n+-----------------------\n \n-# Command is displayed on several lines for clarity.\n+This section details the available filter functions that are available.\n \n-add_perfect_filter (port_id) (ip|udp|tcp|sctp)\n+add_ethertype_filter\n+~~~~~~~~~~~~~~~~~~~~\n \n-    src (src_ip_address) (src_port)\n+Add a L2 Ethertype filter, which identify packets by their L2 Ethertype mainly assign them to a receive queue.\n \n-    dst (dst_ip_address) (dst_port)\n+add_ethertype_filter (port_id) ethertype (eth_value) priority (enable|disable) (pri_value) queue (queue_id) index (idx)\n \n-    flexbytes (flexbytes_values)\n+The available information parameters are:\n \n-    vlan (vlan_id) queue (queue_id) soft (soft_id)\n+*   port_id:  the port which the Ethertype filter assigned on.\n \n-upd_perfect_filter\n-~~~~~~~~~~~~~~~~~~\n+*   eth_value: the EtherType value want to match,\n+    for example 0x0806 for ARP packet. 0x0800 (IPv4) and 0x86DD (IPv6) are invalid.\n \n-Update a perfect filter:\n+*   enable: user priority participates in the match.\n \n-# Command is displayed on several lines for clarity.\n+*   disable: user priority doesn't participate in the match.\n \n-upd_perfect_filter (port_id) (ip|udp|tcp|sctp)\n+*   pri_value: user priority value that want to match.\n \n-    src (src_ip_address) (src_port)\n+*   queue_id : The receive queue associated with this EtherType filter\n \n-    dst (dst_ip_address) (dst_port)\n+*   index: the index of this EtherType filter\n \n-    flexbytes (flexbytes_values)\n+Example:\n \n-    vlan (vlan_id) queue (queue_id)\n+.. code-block:: console\n \n-rm_perfect_filter\n-~~~~~~~~~~~~~~~~~\n+    testpmd> add_ethertype_filter 0 ethertype 0x0806 priority disable 0 queue 3 index 0\n+    Assign ARP packet to receive queue 3\n \n-Remove a perfect filter:\n+remove_ethertype_filter\n+~~~~~~~~~~~~~~~~~~~~~~~\n \n-rm_perfect_filter (port_id) (ip|udp|tcp|sctp)\n+Remove a L2 Ethertype filter\n \n-    src (src_ip_address) (src_port)\n+remove_ethertype_filter (port_id) index (idx)\n \n-    dst (dst_ip_address) (dst_port)\n+get_ethertype_filter\n+~~~~~~~~~~~~~~~~~~~~\n \n-    flexbytes (flexbytes_values)\n+Get and display a L2 Ethertype filter\n \n-    vlan (vlan_id) soft (soft_id)\n+get_ethertype_filter (port_id) index (idx)\n \n-set_masks_filter\n-~~~~~~~~~~~~~~~~\n+Example:\n \n-Set IPv4 filter masks:\n+.. code-block:: console\n \n-# Command is displayed on several lines for clarity.\n+    testpmd> get_ethertype_filter 0 index 0\n \n-set_masks_filter (port_id) only_ip_flow (0|1)\n+    filter[0]:\n+        ethertype: 0x0806\n+        priority: disable, 0\n+        queue: 3\n \n-    src_mask (ip_src_mask) (src_port_mask)\n+add_2tuple_filter\n+~~~~~~~~~~~~~~~~~\n \n-    dst_mask (ip_dst_mask) (dst_port_mask)\n+Add a 2-tuple filter,\n+which identify packets by specific protocol and destination TCP/UDP port\n+and forwards packets into one of the receive queues.\n \n-    flexbytes (0|1) vlan_id (0|1) vlan_prio (0|1)\n+add_2tuple_filter (port_id) protocol (pro_value) (pro_mask) dst_port (port_value) (port_mask)\n+flags (flg_value) priority (prio_value) queue (queue_id) index (idx)\n \n-set_ipv6_masks_filter\n-~~~~~~~~~~~~~~~~~~~~~\n+The available information parameters are:\n \n-Set IPv6 filter masks:\n+*   port_id: the port which the 2-tuple filter assigned on.\n \n-# Command is displayed on several lines for clarity.\n+*   pro_value: IP L4 protocol\n \n-set_ipv6_masks_filter (port_id) only_ip_flow (0|1)\n+*   pro_mask: protocol participates in the match or not, 1 means participate\n \n-    src_mask (ip_src_mask) (src_port_mask)\n+*   port_value: destination port in L4.\n \n-    dst_mask (ip_dst_mask) (dst_port_mask)\n+*   port_mask: destination port participates in the match or not, 1 means participate.\n \n-    flexbytes (0|1) vlan_id (0|1) vlan_prio (0|1)\n+*   flg_value: TCP control bits. The non-zero value is invalid, when the pro_value is not set to 0x06 (TCP).\n \n-    compare_dst (0|1)\n+*   prio_value: the priority of this filter.\n \n-Link Bonding Functions\n-----------------------\n+*   queue_id: The receive queue associated with this 2-tuple filter\n \n-The Link Bonding functions make it possible to dynamically create and\n-manage link bonding devices from within testpmd interactive prompt.\n+*   index: the index of this 2-tuple filter\n \n-create bonded device\n-~~~~~~~~~~~~~~~~~~~~\n+Example:\n \n-Create a new bonding device:\n+.. code-block:: console\n \n-create bonded device (mode) (socket)\n+    testpmd> add_2tuple_filter 0 protocol 0x06 1 dst_port 32 1 flags 0x02 priority 3 queue 3 index 0\n \n-For example, to create a bonded device in mode 1 on socket 0.\n+remove_2tuple_filter\n+~~~~~~~~~~~~~~~~~~~~\n \n-.. code-block:: console\n+Remove a 2-tuple filter\n \n-    testpmd> create bonded 1 0\n-    created new bonded device (port X)\n+remove_2tuple_filter (port_id) index (idx)\n \n-add bonding slave\n+get_2tuple_filter\n ~~~~~~~~~~~~~~~~~\n \n-Adds Ethernet device to a Link Bonding device:\n+Get and display a 2-tuple filter\n \n-add bonding slave (slave id) (port id)\n+get_2tuple_filter (port_id) index (idx)\n \n-For example, to add Ethernet device (port 6) to a Link Bonding device (port 10).\n+Example:\n \n .. code-block:: console\n \n-    testpmd> add bonding slave 6 10\n+    testpmd> get_2tuple_filter 0 index 0\n \n+    filter[0]:\n+        Destination Port: 0x0020 mask: 1\n+        protocol: 0x06 mask:1 tcp_flags: 0x02\n+        priority: 3   queue: 3\n \n-remove bonding slave\n-~~~~~~~~~~~~~~~~~~~~\n+add_5tuple_filter\n+~~~~~~~~~~~~~~~~~\n \n-Removes an Ethernet slave device from a Link Bonding device:\n+Add a 5-tuple filter,\n+which consists of a 5-tuple (protocol, source and destination IP addresses, source and destination TCP/UDP/SCTP port)\n+and routes packets into one of the receive queues.\n \n-remove bonding slave (slave id) (port id)\n+add_5tuple_filter (port_id) dst_ip (dst_address) src_ip (src_address) dst_port (dst_port_value) src_port (src_port_value)\n+protocol (protocol_value) mask (mask_value) flags (flags_value) priority (prio_value) queue (queue_id) index (idx)\n \n-For example, to remove Ethernet slave device (port 6) to a Link Bonding device (port 10).\n+The available information parameters are:\n \n-.. code-block:: console\n+*   port_id: the port which the 5-tuple filter assigned on.\n \n-    testpmd> remove bonding slave 6 10\n+*   dst_address: destination IP address.\n \n-set bonding mode\n-~~~~~~~~~~~~~~~~\n+*   src_address: source IP address.\n \n-Set the Link Bonding mode of a Link Bonding device:\n+*   dst_port_value: TCP/UDP destination port.\n \n-set bonding mode (value) (port id)\n+*   src_port_value: TCP/UDP source port.\n \n-For example, to set the bonding mode of a Link Bonding device (port 10) to broadcast (mode 3).\n+*   protocol_value: L4 protocol.\n \n-.. code-block:: console\n+*   mask_value: participates in the match or not by bit for field above, 1b means participate\n \n-    testpmd> set bonding mode 3 10\n+*   flags_value: TCP control bits. The non-zero value is invalid, when the protocol_value is not set to 0x06 (TCP).\n \n-set bonding primary\n-~~~~~~~~~~~~~~~~~~~\n+*   prio_value: the priority of this filter.\n \n-Set an Ethernet slave device as the primary device on a Link Bonding device:\n+*   queue_id: The receive queue associated with this 5-tuple filter.\n \n-set bonding primary (slave id) (port id)\n+*   index: the index of this 5-tuple filter\n \n-For example, to set the Ethernet slave device (port 6) as the primary port of a Link Bonding device (port 10).\n+Example:\n \n .. code-block:: console\n \n-    testpmd> set bonding primary 6 10\n+    testpmd> add_5tuple_filter 1 dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 64 src_port 32 protocol 0x06 mask 0x1F flags 0x0 priority 3 queue 3 index 0\n \n-set bonding mac\n-~~~~~~~~~~~~~~~\n+remove_5tuple_filter\n+~~~~~~~~~~~~~~~~~~~~\n \n-Set the MAC address of a Link Bonding device:\n+Remove a 5-tuple filter\n \n-set bonding mac (port id) (mac)\n+remove_5tuple_filter (port_id) index (idx)\n \n-For example, to set the MAC address of a Link Bonding device (port 10) to 00:00:00:00:00:01\n+get_5tuple_filter\n+~~~~~~~~~~~~~~~~~\n+\n+Get and display a 5-tuple filter\n+\n+get_5tuple_filter (port_id) index (idx)\n+\n+Example:\n \n .. code-block:: console\n \n-    testpmd> set bonding mac 10 00:00:00:00:00:01\n+    testpmd> get_5tuple_filter 1 index 0\n \n-set bonding xmit_balance_policy\n-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+    filter[0]:\n+        Destination IP: 0x02020205 mask: 1\n+        Source IP: 0x02020204 mask: 1\n+        Destination Port: 0x0040 mask: 1\n+        Source Port: 0x0020 mask: 1\n+        protocol: 0x06 mask: 1\n+        priority: 3 flags: 0x00 queue: 3\n \n-Set the transmission policy for a Link Bonding device when it is in Balance XOR mode:\n+add_syn_filter\n+~~~~~~~~~~~~~~\n \n-set bonding xmit_balance_policy (port_id) (l2|l23|l34)\n+Add SYN filter, which can forward TCP packets whose *SYN* flag is set into a separate queue.\n \n-For example, set a Link Bonding device (port 10) to use a balance policy of layer 3+4 (IP addresses & UDP ports )\n+add_syn_filter (port_id) priority (high|low) queue (queue_id)\n \n-.. code-block:: console\n+The available information parameters are:\n \n-    testpmd> set bonding xmit_balance_policy 10 l34\n+*   port_id: the port which the SYN filter assigned on.\n \n-show bonding config\n-~~~~~~~~~~~~~~~~~~~\n+*   high: this SYN filter has higher priority than other filters.\n \n-Show the current configuration of a Link Bonding device:\n+*   low: this SYN filter has lower priority than other filters.\n \n-show bonding config (port id)\n+*   queue_id: The receive queue associated with this SYN filter\n \n-For example,\n-to show the configuration a Link Bonding device (port 9) with 3 slave devices (1, 3, 4)\n-in balance mode with a transmission policy of layer 2+3.\n+Example:\n \n .. code-block:: console\n \n-    testpmd> show bonding config 9\n-        Bonding mode: 2\n-        Balance Xmit Policy: BALANCE_XMIT_POLICY_LAYER23\n-        Slaves (3): [1 3 4]\n-        Active Slaves (3): [1 3 4]\n-        Primary: [3]\n+    testpmd> add_syn_filter 0 priority high queue 3,\n \n-Register Functions\n-------------------\n+remove_syn_filter\n+~~~~~~~~~~~~~~~~~\n \n-The Register functions can be used to read from and write to registers on the network card referenced by a port number.\n-This is mainly useful for debugging purposes.\n-Reference should be made to the appropriate datasheet for the network card for details on the register addresses\n-and fields that can be accessed.\n+Remove SYN filter\n \n-read reg\n-~~~~~~~~\n+remove_syn_filter (port_id)\n \n-Display the value of a port register:\n+get_syn_filter\n+~~~~~~~~~~~~~~\n \n-read reg (port_id) (address)\n+Get and display SYN filter\n \n-For example, to examine the Flow Director control register (FDIRCTL, 0x0000EE000) on an Intel® 82599 10 GbE Controller:\n+get_syn_filter (port_id)\n+\n+Example:\n \n .. code-block:: console\n \n-    testpmd> read reg 0 0xEE00\n-    port 0 PCI register at offset 0xEE00: 0x4A060029 (1241907241)\n+    testpmd> get_syn_filter 0\n \n-read regfield\n-~~~~~~~~~~~~~\n+    syn filter: on, priority: high, queue: 3\n \n-Display a port register bit field:\n+add_flex_filter\n+~~~~~~~~~~~~~~~\n \n-read regfield (port_id) (address) (bit_x) (bit_y)\n+Add a Flex filter,\n+which recognizes any arbitrary pattern within the first 128 bytes of the packet\n+and routes packets into one of the receive queues.\n \n-For example, reading the lowest two bits from the register in the example above:\n+add_flex_filter (port_id) len (len_value) bytes (bytes_string) mask (mask_value)\n+priority (prio_value) queue (queue_id) index (idx)\n \n-.. code-block:: console\n+The available information parameters are:\n \n-    testpmd> read regfield 0 0xEE00 0 1\n-    port 0 PCI register at offset 0xEE00: bits[0, 1]=0x1 (1)\n+*   port_id: the port which the Flex filter assigned on.\n \n-read regbit\n-~~~~~~~~~~~\n+*   len_value: filter length in byte, no greater than 128.\n \n-Display a single port register bit:\n+*   bytes_string: a sting in format of octal, means the value the flex filter need to match.\n \n-read regbit (port_id) (address) (bit_x)\n+*   mask_value: a sting in format of octal, bit 1 means corresponding byte in DWORD participates in the match.\n \n-For example, reading the lowest bit from the register in the example above:\n+*   prio_value: the priority of this filter.\n \n-.. code-block:: console\n+*   queue_id: The receive queue associated with this Flex filter.\n \n-    testpmd> read regbit 0 0xEE00 0\n-    port 0 PCI register at offset 0xEE00: bit 0=1\n+*   index: the index of this Flex filter\n \n-write reg\n-~~~~~~~~~\n+Example:\n \n-Set the value of a port register:\n+.. code-block:: console\n \n-write reg (port_id) (address) (value)\n+   testpmd> add_flex_filter 0 len 16 bytes 0x00000000000000000000000008060000 mask 000C priority 3 queue 3 index 0\n \n-For example, to clear a register:\n+Assign a packet whose 13th and 14th bytes are 0x0806 to queue 3.\n \n-.. code-block:: console\n+remove_flex_filter\n+~~~~~~~~~~~~~~~~~~\n \n-    testpmd> write reg 0 0xEE00 0x0\n-    port 0 PCI register at offset 0xEE00: 0x00000000 (0)\n+Remove a Flex filter\n \n-write regfield\n-~~~~~~~~~~~~~~\n+remove_flex_filter (port_id) index (idx)\n \n-Set bit field of a port register:\n+get_flex_filter\n+~~~~~~~~~~~~~~~\n \n-write regfield (port_id) (address) (bit_x) (bit_y) (value)\n+Get and display a Flex filter\n \n-For example, writing to the register cleared in the example above:\n+get_flex_filter (port_id) index (idx)\n \n-.. code-block:: console\n+Example:\n \n-    testpmd> write regfield 0 0xEE00 0 1 2\n-    port 0 PCI register at offset 0xEE00: 0x00000002 (2)\n+.. code-block:: console\n \n-write regbit\n-~~~~~~~~~~~~\n+    testpmd> get_flex_filter 0 index 0\n \n-Set single bit value of a port register:\n+    filter[0]:\n \n-write regbit (port_id) (address) (bit_x) (value)\n+        length: 16\n \n-For example, to set the high bit in the register from the example above:\n+        dword[]: 0x00000000 00000000 00000000 08060000 00000000 00000000 00000000\n+    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000\n+    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000\n+    00000000 00000000 00000000 00000000 00000000 00000000 00000000\n \n-.. code-block:: console\n+        mask[]:\n+    0b0000000000001100000000000000000000000000000000000000000000000000000000\n+    0000000000000000000000000000000000000000000000000000000000\n \n-    testpmd> write regbit 0 0xEE00 31 1\n-    port 0 PCI register at offset 0xEE00: 0x8000000A (2147483658)\n+        priority: 3   queue: 3\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "3/4"
    ]
}