get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 140031,
    "url": "https://patches.dpdk.org/api/patches/140031/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20240513155911.31872-3-nandinipersad361@gmail.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": "<20240513155911.31872-3-nandinipersad361@gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240513155911.31872-3-nandinipersad361@gmail.com",
    "date": "2024-05-13T15:59:04",
    "name": "[2/9] doc: reword pmd section in prog guide",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "874bfdca0480c3405297a6dac331b5ec20f04052",
    "submitter": {
        "id": 3325,
        "url": "https://patches.dpdk.org/api/people/3325/?format=api",
        "name": "Nandini Persad",
        "email": "nandinipersad361@gmail.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20240513155911.31872-3-nandinipersad361@gmail.com/mbox/",
    "series": [
        {
            "id": 31913,
            "url": "https://patches.dpdk.org/api/series/31913/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31913",
            "date": "2024-05-13T15:59:02",
            "name": "reowrd in prog guide",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/31913/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/140031/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/140031/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5E14C4401C;\n\tMon, 13 May 2024 18:01:49 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 65326409FA;\n\tMon, 13 May 2024 18:01:38 +0200 (CEST)",
            "from mail-pf1-f182.google.com (mail-pf1-f182.google.com\n [209.85.210.182])\n by mails.dpdk.org (Postfix) with ESMTP id 7843C4068A\n for <dev@dpdk.org>; Mon, 13 May 2024 17:59:31 +0200 (CEST)",
            "by mail-pf1-f182.google.com with SMTP id\n d2e1a72fcca58-6f44dd41a5cso4593208b3a.0\n for <dev@dpdk.org>; Mon, 13 May 2024 08:59:31 -0700 (PDT)",
            "from localhost.localdomain (syn-076-032-089-124.res.spectrum.com.\n [76.32.89.124]) by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-6f4d2aa16dfsm7715078b3a.93.2024.05.13.08.59.28\n for <dev@dpdk.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 13 May 2024 08:59:29 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1715615970; x=1716220770; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=oMZSqN2MgEi48CAxIOYfTONd/mQp+1QoHoxfzjCaa54=;\n b=SN1S5Ku8ijhyMdSaWrXsJIntICX3gsKOG3lAu2/SoFufsH6oRYXEuxRkjf7imlIUF3\n xrkpZWkcgNDirB8oPwF/rfYvygsj0dQlcnxLRYbdhGBKSoMzLP577T6BhwV3f5vJdjXq\n BkqWGqLNcUgocVs1p7i13wE4W/HTf2pGw1J5nxDj1hcgpvfXFVutKJF6yXdwSdJedQAp\n JAcq9PmHgYxy97f0DhgiL4ZOUPtIj5/oq9QOGwSYNKy6YZ/T/2XWdxfzYOaOqgA9EZWb\n hCd6R6m8LMiQb5eT9zzhbQxyX7Er1cPyjgoTbKELRTlf7nrBTNczSq+5gO2JsxkhUaWg\n Itag==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1715615970; x=1716220770;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=oMZSqN2MgEi48CAxIOYfTONd/mQp+1QoHoxfzjCaa54=;\n b=jdk0bze4e0hbt5dLHVGdKbadm52tytJbbPECF48ODpmUHZhKZl2Z33qgrLgYVVUuOG\n Yso5Yd8BgSEAy401zexa2DDttnulY1s8YirJVjKGBk3lhX/TnM7pUFCV8OUba7fC8ZXm\n 0qLNOKexNj0UiMFaLHfKYYB4OKcN5p4EqQbG69aZMR0meA1wt9Rlc7z63rz4/EW+sE2O\n Qq/uSHeJsTJdsqZuLi7RhG3lvVXpgPTgch0ttC421m6nWaGcW8MAHAaWfVYQi3spUFaX\n ++VH6jGBcPEIq62z4nXBVtsiQUAu5n7Kdb0DZZBtfdXWOsC5DAfMPvHP6tkw8SsKMCbD\n bOdQ==",
        "X-Gm-Message-State": "AOJu0YyAqx4GNf9w79LjmaSfT6IyVeLT+g4RuGi+riVPB/PqbbBUHTj+\n XEmhSKyA/OuEXDz/QKgGbzgiJSllE+ZjZMFJlHRFotWGIYNDttWws2fKag==",
        "X-Google-Smtp-Source": "\n AGHT+IHld8DsL8qnW9oh88jy4gYirjGWmMhluua4/xZ3J40FVWa5ho4VvkWzba5w+68ftiHMdwWa4g==",
        "X-Received": "by 2002:a05:6a20:7fa6:b0:1af:baf9:fef6 with SMTP id\n adf61e73a8af0-1afde0cd696mr13693724637.16.1715615969771;\n Mon, 13 May 2024 08:59:29 -0700 (PDT)",
        "From": "Nandini Persad <nandinipersad361@gmail.com>",
        "To": "dev@dpdk.org",
        "Subject": "[PATCH 2/9] doc: reword pmd section in prog guide",
        "Date": "Mon, 13 May 2024 08:59:04 -0700",
        "Message-Id": "<20240513155911.31872-3-nandinipersad361@gmail.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20240513155911.31872-1-nandinipersad361@gmail.com>",
        "References": "<20240513155911.31872-1-nandinipersad361@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Mon, 13 May 2024 18:01:34 +0200",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "made small edits to section 15.1 and 15.5\n\nSigned-off-by: Nandini Persad <nandinipersad361@gmail.com>\n---\n doc/guides/prog_guide/poll_mode_drv.rst | 151 ++++++++++++------------\n 1 file changed, 73 insertions(+), 78 deletions(-)",
    "diff": "diff --git a/doc/guides/prog_guide/poll_mode_drv.rst b/doc/guides/prog_guide/poll_mode_drv.rst\nindex 5008b41c60..360af20900 100644\n--- a/doc/guides/prog_guide/poll_mode_drv.rst\n+++ b/doc/guides/prog_guide/poll_mode_drv.rst\n@@ -6,25 +6,24 @@\n Poll Mode Driver\n ================\n \n-The DPDK includes 1 Gigabit, 10 Gigabit and 40 Gigabit and para virtualized virtio Poll Mode Drivers.\n+The DPDK includes 1 Gigabit, 10 Gigabit, 40 Gigabit and para virtualized virtio Poll Mode Drivers.\n \n-A Poll Mode Driver (PMD) consists of APIs, provided through the BSD driver running in user space,\n-to configure the devices and their respective queues.\n+A Poll Mode Driver (PMD) consists of APIs (provided through the BSD driver running in user space) to configure the devices and their respective queues.\n In addition, a PMD accesses the RX and TX descriptors directly without any interrupts\n (with the exception of Link Status Change interrupts) to quickly receive,\n process and deliver packets in the user's application.\n-This section describes the requirements of the PMDs,\n-their global design principles and proposes a high-level architecture and a generic external API for the Ethernet PMDs.\n+This section describes the requirements of the PMDs and\n+their global design principles. It also proposes a high-level architecture and a generic external API for the Ethernet PMDs.\n \n Requirements and Assumptions\n ----------------------------\n \n The DPDK environment for packet processing applications allows for two models, run-to-completion and pipe-line:\n \n-*   In the *run-to-completion*  model, a specific port's RX descriptor ring is polled for packets through an API.\n-    Packets are then processed on the same core and placed on a port's TX descriptor ring through an API for transmission.\n+*   In the *run-to-completion*  model, a specific port's Rx descriptor ring is polled for packets through an API.\n+    Packets are then processed on the same core and placed on a port's Tx descriptor ring through an API for transmission.\n \n-*   In the *pipe-line*  model, one core polls one or more port's RX descriptor ring through an API.\n+*   In the *pipe-line*  model, one core polls one or more port's Rx descriptor ring through an API.\n     Packets are received and passed to another core via a ring.\n     The other core continues to process the packet which then may be placed on a port's TX descriptor ring through an API for transmission.\n \n@@ -50,14 +49,14 @@ The loop for packet processing includes the following steps:\n \n *   Retrieve the received packet from the packet queue\n \n-*   Process the received packet, up to its retransmission if forwarded\n+*   Process the received packet up to its retransmission if forwarded\n \n To avoid any unnecessary interrupt processing overhead, the execution environment must not use any asynchronous notification mechanisms.\n Whenever needed and appropriate, asynchronous communication should be introduced as much as possible through the use of rings.\n \n Avoiding lock contention is a key issue in a multi-core environment.\n-To address this issue, PMDs are designed to work with per-core private resources as much as possible.\n-For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable.\n+To address this issue, PMDs are designed to work with per core private resources as much as possible.\n+For example, a PMD maintains a separate transmit queue per core, per port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable.\n In the same way, every receive queue of a port is assigned to and polled by a single logical core (lcore).\n \n To comply with Non-Uniform Memory Access (NUMA), memory management is designed to assign to each logical core\n@@ -101,9 +100,9 @@ However, an rte_eth_tx_burst function is effectively implemented by the PMD to m\n \n *   Apply burst-oriented software optimization techniques to remove operations that would otherwise be unavoidable, such as ring index wrap back management.\n \n-Burst-oriented functions are also introduced via the API for services that are intensively used by the PMD.\n+Burst-oriented functions are also introduced via the API for services that are extensively used by the PMD.\n This applies in particular to buffer allocators used to populate NIC rings, which provide functions to allocate/free several buffers at a time.\n-For example, an mbuf_multiple_alloc function returning an array of pointers to rte_mbuf buffers which speeds up the receive poll function of the PMD when\n+An example of this would be an mbuf_multiple_alloc function returning an array of pointers to rte_mbuf buffers which speeds up the receive poll function of the PMD when\n replenishing multiple descriptors of the receive ring.\n \n Logical Cores, Memory and NIC Queues Relationships\n@@ -111,7 +110,7 @@ Logical Cores, Memory and NIC Queues Relationships\n \n The DPDK supports NUMA allowing for better performance when a processor's logical cores and interfaces utilize its local memory.\n Therefore, mbuf allocation associated with local PCIe* interfaces should be allocated from memory pools created in the local memory.\n-The buffers should, if possible, remain on the local processor to obtain the best performance results and RX and TX buffer descriptors\n+The buffers should, if possible, remain on the local processor to obtain the best performance results and Rx and Tx buffer descriptors\n should be populated with mbufs allocated from a mempool allocated from local memory.\n \n The run-to-completion model also performs better if packet or data manipulation is in local memory instead of a remote processors memory.\n@@ -120,12 +119,11 @@ This is also true for the pipe-line model provided all logical cores used are lo\n Multiple logical cores should never share receive or transmit queues for interfaces since this would require global locks and hinder performance.\n \n If the PMD is ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``\n-concurrently on the same tx queue without SW lock. This PMD feature found in some NICs and useful in the following use cases:\n+concurrently on the same Tx queue without an SW lock. This PMD feature found in some NICs is useful for:\n \n-*  Remove explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.\n+*  Removing explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.\n \n-*  In the eventdev use case, avoid dedicating a separate TX core for transmitting and thus\n-   enables more scaling as all workers can send the packets.\n+*  Enabling greater scalability by removing the requirement to have a dedicated Tx core\n \n See `Hardware Offload`_ for ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.\n \n@@ -135,8 +133,8 @@ Device Identification, Ownership and Configuration\n Device Identification\n ~~~~~~~~~~~~~~~~~~~~~\n \n-Each NIC port is uniquely designated by its (bus/bridge, device, function) PCI\n-identifiers assigned by the PCI probing/enumeration function executed at DPDK initialization.\n+Each NIC port is uniquely designated by its PCI\n+identifiers (bus/bridge, device, function) assigned by the PCI probing/enumeration function executed at DPDK initialization.\n Based on their PCI identifier, NIC ports are assigned two other identifiers:\n \n *   A port index used to designate the NIC port in all functions exported by the PMD API.\n@@ -149,14 +147,13 @@ Port Ownership\n \n The Ethernet devices ports can be owned by a single DPDK entity (application, library, PMD, process, etc).\n The ownership mechanism is controlled by ethdev APIs and allows to set/remove/get a port owner by DPDK entities.\n-It prevents Ethernet ports to be managed by different entities.\n+This prevents Ethernet ports from being managed by different entities.\n \n .. note::\n \n-    It is the DPDK entity responsibility to set the port owner before using it and to manage the port usage synchronization between different threads or processes.\n+    It is the DPDK entity responsibility to set the port owner before using the port and to manage the port usage synchronization between different threads or processes.\n \n-It is recommended to set port ownership early,\n-like during the probing notification ``RTE_ETH_EVENT_NEW``.\n+It is recommended to set port ownership early. For instance, during the probing notification ``RTE_ETH_EVENT_NEW``.\n \n Device Configuration\n ~~~~~~~~~~~~~~~~~~~~\n@@ -165,7 +162,7 @@ The configuration of each NIC port includes the following operations:\n \n *   Allocate PCI resources\n \n-*   Reset the hardware (issue a Global Reset) to a well-known default state\n+*   Reset the hardware to a well-known default state (issue a Global Reset)\n \n *   Set up the PHY and the link\n \n@@ -174,7 +171,7 @@ The configuration of each NIC port includes the following operations:\n The PMD API must also export functions to start/stop the all-multicast feature of a port and functions to set/unset the port in promiscuous mode.\n \n Some hardware offload features must be individually configured at port initialization through specific configuration parameters.\n-This is the case for the Receive Side Scaling (RSS) and Data Center Bridging (DCB) features for example.\n+This is the case for the Receive Side Scaling (RSS) and Data Center Bridging (DCB) features.\n \n On-the-Fly Configuration\n ~~~~~~~~~~~~~~~~~~~~~~~~\n@@ -210,7 +207,7 @@ Each transmit queue is independently configured with the following information:\n \n *   The *minimum* transmit packets to free threshold (tx_free_thresh).\n     When the number of descriptors used to transmit packets exceeds this threshold, the network adaptor should be checked to see if it has written back descriptors.\n-    A value of 0 can be passed during the TX queue configuration to indicate the default value should be used.\n+    A value of 0 can be passed during the Tx queue configuration to indicate the default value should be used.\n     The default value for tx_free_thresh is 32.\n     This ensures that the PMD does not search for completed descriptors until at least 32 have been processed by the NIC for this queue.\n \n@@ -222,7 +219,7 @@ Each transmit queue is independently configured with the following information:\n     A value of 0 can be passed during the TX queue configuration to indicate that the default value should be used.\n     The default value for tx_rs_thresh is 32.\n     This ensures that at least 32 descriptors are used before the network adapter writes back the most recently used descriptor.\n-    This saves upstream PCIe* bandwidth resulting from TX descriptor write-backs.\n+    This saves upstream PCIe* bandwidth resulting from Tx descriptor write-backs.\n     It is important to note that the TX Write-back threshold (TX wthresh) should be set to 0 when tx_rs_thresh is greater than 1.\n     Refer to the Intel® 82599 10 Gigabit Ethernet Controller Datasheet for more details.\n \n@@ -244,7 +241,7 @@ One descriptor in the TX ring is used as a sentinel to avoid a hardware race con\n \n .. note::\n \n-    When configuring for DCB operation, at port initialization, both the number of transmit queues and the number of receive queues must be set to 128.\n+    When configuring for DCB operation at port initialization, both the number of transmit queues and the number of receive queues must be set to 128.\n \n Free Tx mbuf on Demand\n ~~~~~~~~~~~~~~~~~~~~~~\n@@ -265,7 +262,7 @@ There are two scenarios when an application may want the mbuf released immediate\n   One option is to make a copy of the packet or a copy of the header portion that needs to be manipulated.\n   A second option is to transmit the packet and then poll the ``rte_eth_tx_done_cleanup()`` API\n   until the reference count on the packet is decremented.\n-  Then the same packet can be transmitted to the next destination interface.\n+  Then, the same packet can be transmitted to the next destination interface.\n   The application is still responsible for managing any packet manipulations needed\n   between the different destination interfaces, but a packet copy can be avoided.\n   This API is independent of whether the packet was transmitted or dropped,\n@@ -288,13 +285,13 @@ Hardware Offload\n Depending on driver capabilities advertised by\n ``rte_eth_dev_info_get()``, the PMD may support hardware offloading\n feature like checksumming, TCP segmentation, VLAN insertion or\n-lockfree multithreaded TX burst on the same TX queue.\n+lockfree multithreaded Tx burst on the same Tx queue.\n \n The support of these offload features implies the addition of dedicated\n status bit(s) and value field(s) into the rte_mbuf data structure, along\n with their appropriate handling by the receive/transmit functions\n exported by each PMD. The list of flags and their precise meaning is\n-described in the mbuf API documentation and in the in :ref:`Mbuf Library\n+described in the mbuf API documentation and in the :ref:`Mbuf Library\n <Mbuf_Library>`, section \"Meta Information\".\n \n Per-Port and Per-Queue Offloads\n@@ -303,14 +300,14 @@ Per-Port and Per-Queue Offloads\n In the DPDK offload API, offloads are divided into per-port and per-queue offloads as follows:\n \n * A per-queue offloading can be enabled on a queue and disabled on another queue at the same time.\n-* A pure per-port offload is the one supported by device but not per-queue type.\n-* A pure per-port offloading can't be enabled on a queue and disabled on another queue at the same time.\n+* A pure per-port offload is supported by a device but not per-queue type.\n+* A pure per-port offloading cannot be enabled on a queue and disabled on another queue at the same time.\n * A pure per-port offloading must be enabled or disabled on all queues at the same time.\n-* Any offloading is per-queue or pure per-port type, but can't be both types at same devices.\n+* Offloading is per-queue or pure per-port type, but cannot be both types on the same devices.\n * Port capabilities = per-queue capabilities + pure per-port capabilities.\n * Any supported offloading can be enabled on all queues.\n \n-The different offloads capabilities can be queried using ``rte_eth_dev_info_get()``.\n+The different offload capabilities can be queried using ``rte_eth_dev_info_get()``.\n The ``dev_info->[rt]x_queue_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all per-queue offloading capabilities.\n The ``dev_info->[rt]x_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all pure per-port and per-queue offloading capabilities.\n Supported offloads can be either per-port or per-queue.\n@@ -329,8 +326,8 @@ per-port type and no matter whether it is set or cleared in\n If a per-queue offloading hasn't been enabled in ``rte_eth_dev_configure()``,\n it can be enabled or disabled in ``rte_eth_[rt]x_queue_setup()`` for individual queue.\n A newly added offloads in ``[rt]x_conf->offloads`` to ``rte_eth_[rt]x_queue_setup()`` input by application\n-is the one which hasn't been enabled in ``rte_eth_dev_configure()`` and is requested to be enabled\n-in ``rte_eth_[rt]x_queue_setup()``. It must be per-queue type, otherwise trigger an error log.\n+is the one that hasn't been enabled in ``rte_eth_dev_configure()`` and is requested to be enabled\n+in ``rte_eth_[rt]x_queue_setup()``. It must be per-queue type, otherwise an error log will be triggered.\n \n Poll Mode Driver API\n --------------------\n@@ -340,8 +337,8 @@ Generalities\n \n By default, all functions exported by a PMD are lock-free functions that are assumed\n not to be invoked in parallel on different logical cores to work on the same target object.\n-For instance, a PMD receive function cannot be invoked in parallel on two logical cores to poll the same RX queue of the same port.\n-Of course, this function can be invoked in parallel by different logical cores on different RX queues.\n+For instance, a PMD receive function cannot be invoked in parallel on two logical cores to poll the same Rx queue of the same port.\n+This function can be invoked in parallel by different logical cores on different Rx queues.\n It is the responsibility of the upper-level application to enforce this rule.\n \n If needed, parallel accesses by multiple logical cores to shared queues can be explicitly protected by dedicated inline lock-aware functions\n@@ -357,7 +354,7 @@ The rte_mbuf data structure includes specific fields to represent, in a generic\n For an input packet, most fields of the rte_mbuf structure are filled in by the PMD receive function with the information contained in the receive descriptor.\n Conversely, for output packets, most fields of rte_mbuf structures are used by the PMD transmit function to initialize transmit descriptors.\n \n-The mbuf structure is fully described in the :ref:`Mbuf Library <Mbuf_Library>` chapter.\n+The mbuf structure is described in depth in the :ref:`Mbuf Library <Mbuf_Library>` chapter.\n \n Ethernet Device API\n ~~~~~~~~~~~~~~~~~~~\n@@ -370,12 +367,12 @@ Ethernet Device Standard Device Arguments\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n Standard Ethernet device arguments allow for a set of commonly used arguments/\n-parameters which are applicable to all Ethernet devices to be available to for\n-specification of specific device and for passing common configuration\n+parameters applicable to all Ethernet devices. These arguments/parameters are available for\n+specification of specific devices and passing common configuration\n parameters to those ports.\n \n-* ``representor`` for a device which supports the creation of representor ports\n-  this argument allows user to specify which switch ports to enable port\n+* Use ``representor`` for a device which supports the creation of representor ports.\n+  This argument allows user to specify which switch ports to enable port\n   representors for::\n \n    -a DBDF,representor=vf0\n@@ -392,7 +389,7 @@ parameters to those ports.\n    -a DBDF,representor=[pf[0-1],pf2vf[0-2],pf3[3,5-8]]\n    (Multiple representors in one device argument can be represented as a list)\n \n-Note: PMDs are not required to support the standard device arguments and users\n+Note: PMDs are not required to support the standard device arguments. Users\n should consult the relevant PMD documentation to see support devargs.\n \n Extended Statistics API\n@@ -402,9 +399,9 @@ The extended statistics API allows a PMD to expose all statistics that are\n available to it, including statistics that are unique to the device.\n Each statistic has three properties ``name``, ``id`` and ``value``:\n \n-* ``name``: A human readable string formatted by the scheme detailed below.\n+* ``name``: A human-readable string formatted by the scheme detailed below.\n * ``id``: An integer that represents only that statistic.\n-* ``value``: A unsigned 64-bit integer that is the value of the statistic.\n+* ``value``: An unsigned 64-bit integer that is the value of the statistic.\n \n Note that extended statistic identifiers are\n driver-specific, and hence might not be the same for different ports.\n@@ -439,7 +436,7 @@ associated with the receive side of the NIC.  The second component ``packets``\n indicates that the unit of measure is packets.\n \n A more complicated example: ``tx_size_128_to_255_packets``. In this example,\n-``tx`` indicates transmission, ``size``  is the first detail, ``128`` etc are\n+``tx`` indicates transmission, ``size``  is the first detail, ``128`` etc., are\n more details, and ``packets`` indicates that this is a packet counter.\n \n Some additions in the metadata scheme are as follows:\n@@ -466,8 +463,8 @@ lookup of specific statistics. Performant lookup means two things;\n The API ensures these requirements are met by mapping the ``name`` of the\n statistic to a unique ``id``, which is used as a key for lookup in the fast-path.\n The API allows applications to request an array of ``id`` values, so that the\n-PMD only performs the required calculations. Expected usage is that the\n-application scans the ``name`` of each statistic, and caches the ``id``\n+PMD only performs the required calculations. The expected usage is that the\n+application scans the ``name`` of each statistic and caches the ``id``\n if it has an interest in that statistic. On the fast-path, the integer can be used\n to retrieve the actual ``value`` of the statistic that the ``id`` represents.\n \n@@ -486,7 +483,7 @@ statistics.\n \n * ``rte_eth_xstats_get_by_id()``: Fills in an array of ``uint64_t`` values\n   with matching the provided ``ids`` array. If the ``ids`` array is NULL, it\n-  returns all statistics that are available.\n+  returns all available statistics.\n \n \n Application Usage\n@@ -496,10 +493,10 @@ Imagine an application that wants to view the dropped packet count. If no\n packets are dropped, the application does not read any other metrics for\n performance reasons. If packets are dropped, the application has a particular\n set of statistics that it requests. This \"set\" of statistics allows the app to\n-decide what next steps to perform. The following code-snippets show how the\n+decide what next steps to perform. The following code snippets show how the\n xstats API can be used to achieve this goal.\n \n-First step is to get all statistics names and list them:\n+The first step is to get all statistics names and list them:\n \n .. code-block:: c\n \n@@ -545,7 +542,7 @@ First step is to get all statistics names and list them:\n \n The application has access to the names of all of the statistics that the PMD\n exposes. The application can decide which statistics are of interest, cache the\n-ids of those statistics by looking up the name as follows:\n+IDs of those statistics by looking up the name as follows:\n \n .. code-block:: c\n \n@@ -564,8 +561,7 @@ ids of those statistics by looking up the name as follows:\n \n The API provides flexibility to the application so that it can look up multiple\n statistics using an array containing multiple ``id`` numbers. This reduces the\n-function call overhead of retrieving statistics, and makes lookup of multiple\n-statistics simpler for the application.\n+function call overhead of retrieving statistics and simplifies the application's lookup of multiple statistics.\n \n .. code-block:: c\n \n@@ -585,8 +581,8 @@ statistics simpler for the application.\n \n This array lookup API for xstats allows the application create multiple\n \"groups\" of statistics, and look up the values of those IDs using a single API\n-call. As an end result, the application is able to achieve its goal of\n-monitoring a single statistic (\"rx_errors\" in this case), and if that shows\n+call. As an end result, the application can achieve its goal of\n+monitoring a single statistic (in this case,\"rx_errors\"). If that shows\n packets being dropped, it can easily retrieve a \"set\" of statistics using the\n IDs array parameter to ``rte_eth_xstats_get_by_id`` function.\n \n@@ -597,23 +593,23 @@ NIC Reset API\n \n     int rte_eth_dev_reset(uint16_t port_id);\n \n-Sometimes a port has to be reset passively. For example when a PF is\n+There are times when a port has to be reset passively. For example, when a PF is\n reset, all its VFs should also be reset by the application to make them\n-consistent with the PF. A DPDK application also can call this function\n-to trigger a port reset. Normally, a DPDK application would invokes this\n+consistent with the PF. A DPDK application can also call this function\n+to trigger a port reset. Normally, a DPDK application would invoke this\n function when an RTE_ETH_EVENT_INTR_RESET event is detected.\n \n-It is the duty of the PMD to trigger RTE_ETH_EVENT_INTR_RESET events and\n-the application should register a callback function to handle these\n+The PMD's duty is to trigger RTE_ETH_EVENT_INTR_RESET events.\n+The application should register a callback function to handle these\n events. When a PMD needs to trigger a reset, it can trigger an\n RTE_ETH_EVENT_INTR_RESET event. On receiving an RTE_ETH_EVENT_INTR_RESET\n-event, applications can handle it as follows: Stop working queues, stop\n+event, applications can do as follows: Stop working queues, stop\n calling Rx and Tx functions, and then call rte_eth_dev_reset(). For\n thread safety all these operations should be called from the same thread.\n \n For example when PF is reset, the PF sends a message to notify VFs of\n-this event and also trigger an interrupt to VFs. Then in the interrupt\n-service routine the VFs detects this notification message and calls\n+this event and also trigger an interrupt to VFs. Then, in the interrupt\n+service routine, the VFs detects this notification message and calls\n rte_eth_dev_callback_process(dev, RTE_ETH_EVENT_INTR_RESET, NULL).\n This means that a PF reset triggers an RTE_ETH_EVENT_INTR_RESET\n event within VFs. The function rte_eth_dev_callback_process() will\n@@ -621,13 +617,12 @@ call the registered callback function. The callback function can trigger\n the application to handle all operations the VF reset requires including\n stopping Rx/Tx queues and calling rte_eth_dev_reset().\n \n-The rte_eth_dev_reset() itself is a generic function which only does\n-some hardware reset operations through calling dev_unint() and\n-dev_init(), and itself does not handle synchronization, which is handled\n+The rte_eth_dev_reset() is a generic function that only does hardware reset operations through calling dev_unint() and\n+dev_init(). It does not handle synchronization, which is handled\n by application.\n \n The PMD itself should not call rte_eth_dev_reset(). The PMD can trigger\n-the application to handle reset event. It is duty of application to\n+the application to handle reset event. It is duty of the application to\n handle all synchronization before it calls rte_eth_dev_reset().\n \n The above error handling mode is known as ``RTE_ETH_ERROR_HANDLE_MODE_PASSIVE``.\n@@ -635,15 +630,15 @@ The above error handling mode is known as ``RTE_ETH_ERROR_HANDLE_MODE_PASSIVE``.\n Proactive Error Handling Mode\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-This mode is known as ``RTE_ETH_ERROR_HANDLE_MODE_PROACTIVE``,\n-different from the application invokes recovery in PASSIVE mode,\n-the PMD automatically recovers from error in PROACTIVE mode,\n+This mode is known as ``RTE_ETH_ERROR_HANDLE_MODE_PROACTIVE``, which is\n+different from the application invokes recovery in PASSIVE mode.\n+The PMD automatically recovers from error in PROACTIVE mode,\n and only a small amount of work is required for the application.\n \n During error detection and automatic recovery,\n the PMD sets the data path pointers to dummy functions\n (which will prevent the crash),\n-and also make sure the control path operations fail with a return code ``-EBUSY``.\n+and ensures sure the control path operations fail with a return code ``-EBUSY``.\n \n Because the PMD recovers automatically,\n the application can only sense that the data flow is disconnected for a while\n@@ -655,9 +650,9 @@ three events are available:\n \n ``RTE_ETH_EVENT_ERR_RECOVERING``\n    Notify the application that an error is detected\n-   and the recovery is being started.\n+   and the recovery is beginning.\n    Upon receiving the event, the application should not invoke\n-   any control path function until receiving\n+   any control path function until receiving the\n    ``RTE_ETH_EVENT_RECOVERY_SUCCESS`` or ``RTE_ETH_EVENT_RECOVERY_FAILED`` event.\n \n .. note::\n@@ -667,7 +662,7 @@ three events are available:\n    because a larger error may occur during the recovery.\n \n ``RTE_ETH_EVENT_RECOVERY_SUCCESS``\n-   Notify the application that the recovery from error is successful,\n+   Notify the application that the recovery from the error was successful,\n    the PMD already re-configures the port,\n    and the effect is the same as a restart operation.\n \n",
    "prefixes": [
        "2/9"
    ]
}