DPDK patches and discussions
 help / color / mirror / Atom feed
From: fengchengwen <fengchengwen@huawei.com>
To: Nandini Persad <nandinipersad361@gmail.com>,
	Thomas Monjalon <thomas@monjalon.net>,
	Ferruh Yigit <ferruh.yigit@amd.com>,
	Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
	Kevin Laatz <kevin.laatz@intel.com>,
	Bruce Richardson <bruce.richardson@intel.com>,
	Ori Kam <orika@nvidia.com>,
	Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,
	John McNamara <john.mcnamara@intel.com>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH v2] doc: reword sample app guides
Date: Tue, 8 Oct 2024 11:34:02 +0800	[thread overview]
Message-ID: <f3395c12-a73e-49a3-8adf-719ed0647229@huawei.com> (raw)
In-Reply-To: <20241006234517.55303-1-nandinipersad361@gmail.com>

Hi Nandini,

For dma.rst, there are two minor comments, with that fixed, please add:
Acked-by: Chengwen Feng <fengchengwen@huawei.com>

Thanks

On 2024/10/7 7:45, Nandini Persad wrote:
> I have reviewed these sections for grammar/clarity
> and made small modifications to the formatting of sections
> to adhere to a template which will create uniformality
> in the sample application user guides overall.
> 
> Signed-off-by: Nandini Persad <nandinipersad361@gmail.com>
> ---
>  .../prog_guide/switch_representation.rst      | 18 +++---
>  .../traffic_metering_and_policing.rst         |  4 +-
>  doc/guides/sample_app_ug/cmd_line.rst         | 24 ++++----
>  doc/guides/sample_app_ug/dma.rst              | 38 ++++++-------
>  doc/guides/sample_app_ug/ethtool.rst          | 13 +++--
>  doc/guides/sample_app_ug/flow_filtering.rst   | 50 +++++++++--------
>  doc/guides/sample_app_ug/hello_world.rst      |  6 +-
>  doc/guides/sample_app_ug/intro.rst            | 20 +++----
>  doc/guides/sample_app_ug/ip_frag.rst          | 11 ++--
>  doc/guides/sample_app_ug/ip_reassembly.rst    | 38 +++++++------
>  doc/guides/sample_app_ug/ipv4_multicast.rst   | 39 ++++++-------
>  doc/guides/sample_app_ug/keep_alive.rst       | 10 ++--
>  .../sample_app_ug/l2_forward_crypto.rst       | 29 +++++-----
>  .../sample_app_ug/l2_forward_job_stats.rst    | 56 +++++++++++--------
>  doc/guides/sample_app_ug/rxtx_callbacks.rst   | 21 ++++---
>  doc/guides/sample_app_ug/skeleton.rst         | 30 +++++-----
>  16 files changed, 223 insertions(+), 184 deletions(-)
> 

...

> diff --git a/doc/guides/sample_app_ug/dma.rst b/doc/guides/sample_app_ug/dma.rst
> index 2765895564..701d09d1b3 100644
> --- a/doc/guides/sample_app_ug/dma.rst
> +++ b/doc/guides/sample_app_ug/dma.rst
> @@ -10,10 +10,10 @@ Overview
>  --------
>  
>  This sample is intended as a demonstration of the basic components of a DPDK
> -forwarding application and example of how to use the DMAdev API to make a packet
> +forwarding application and an example of how to use the DMAdev API to make a packet
>  copy application.
>  
> -Also while forwarding, the MAC addresses are affected as follows:
> +Also, while forwarding, the MAC addresses are affected as follows:
>  
>  *   The source MAC address is replaced by the TX port MAC address
>  
> @@ -27,7 +27,7 @@ received/send packets and packets dropped or failed to copy.
>  Compiling the Application
>  -------------------------
>  
> -To compile the sample application see :doc:`compiling`.
> +To compile the sample application, see :doc:`compiling`.
>  
>  The application is located in the ``dma`` sub-directory.
>  
> @@ -38,7 +38,7 @@ Running the Application
>  In order to run the hardware copy application, the copying device
>  needs to be bound to user-space IO driver.
>  
> -Refer to the "DMAdev library" chapter in the "Programmers guide" for information
> +Refer to the "DMAdev library" chapter in the Programmer's guide for information

Refer to the "Direct Memory Access (DMA) Device Library" chapter in the programmer's guide for information

>  on using the library.
>  
>  The application requires a number of command line options:
> @@ -70,11 +70,11 @@ where,
>  
>  *   i SI: set the interval, in second, between statistics prints (default is 1)
>  
> -The application can be launched in various configurations depending on
> +The application can be launched in various configurations depending on the
>  provided parameters. The app can use up to 2 lcores: one of them receives
>  incoming traffic and makes a copy of each packet. The second lcore then
> -updates MAC address and sends the copy. If one lcore per port is used,
> -both operations are done sequentially. For each configuration an additional
> +updates the MAC address and sends the copy. If one lcore per port is used,
> +both operations are done sequentially. For each configuration, an additional
>  lcore is needed since the main lcore does not handle traffic but is
>  responsible for configuration, statistics printing and safe shutdown of
>  all ports and devices.
> @@ -159,7 +159,7 @@ multiple DMA channels per port:
>      :end-before: >8 End of configuring port to use RSS for multiple RX queues.
>      :dedent: 1
>  
> -For this example the ports are set up with the number of Rx queues provided
> +For this example, the ports are set up with the number of Rx queues provided
>  with -q option and 1 Tx queue using the ``rte_eth_rx_queue_setup()``
>  and ``rte_eth_tx_queue_setup()`` functions.
>  
> @@ -172,7 +172,7 @@ The Ethernet port is then started:
>      :dedent: 1
>  
>  
> -Finally the Rx port is set in promiscuous mode:
> +Finally, the Rx port is set in promiscuous mode:
>  
>  .. literalinclude:: ../../../examples/dma/dmafwd.c
>      :language: c
> @@ -181,7 +181,7 @@ Finally the Rx port is set in promiscuous mode:
>      :dedent: 1
>  
>  
> -After that each port application assigns resources needed.
> +After that, each port application assigns resources needed.
>  
>  .. literalinclude:: ../../../examples/dma/dmafwd.c
>      :language: c
> @@ -224,7 +224,7 @@ using ``rte_dma_start()`` function. Each of the above operations is done in
>  If initialization is successful, memory for hardware device
>  statistics is allocated.
>  
> -Finally ``main()`` function starts all packet handling lcores and starts
> +Finally, the ``main()`` function starts all packet handling lcores and starts
>  printing stats in a loop on the main lcore. The application can be
>  interrupted and closed using ``Ctrl-C``. The main lcore waits for
>  all worker lcores to finish, deallocates resources and exits.
> @@ -273,13 +273,13 @@ packet using ``pktmbuf_sw_copy()`` function and enqueue them to an rte_ring:
>      :dedent: 0
>  
>  The packets are received in burst mode using ``rte_eth_rx_burst()``
> -function. When using hardware copy mode the packets are enqueued in
> +function. When using hardware copy mode the packets are enqueued in the
>  copying device's buffer using ``dma_enqueue_packets()`` which calls
>  ``rte_dma_copy()``. When all received packets are in the
> -buffer the copy operations are started by calling ``rte_dma_submit()``.
> +buffer, the copy operations are started by calling ``rte_dma_submit()``.
>  Function ``rte_dma_copy()`` operates on physical address of
>  the packet. Structure ``rte_mbuf`` contains only physical address to
> -start of the data buffer (``buf_iova``). Thus the ``rte_pktmbuf_iova()`` API is
> +start of the data buffer (``buf_iova``). Thus, the ``rte_pktmbuf_iova()`` API is
>  used to get the address of the start of the data within the mbuf.
>  
>  .. literalinclude:: ../../../examples/dma/dmafwd.c
> @@ -291,11 +291,11 @@ used to get the address of the start of the data within the mbuf.
>  
>  Once the copies have been completed (this includes gathering the completions in
>  HW copy mode), the copied packets are enqueued to the ``rx_to_tx_ring``, which
> -is used to pass the packets to the TX function.
> +is used to pass the packets to the Tx function.
>  
>  All completed copies are processed by ``dma_tx_port()`` function. This function
> -dequeues copied packets from the ``rx_to_tx_ring``. Then each packet MAC address is changed
> -if it was enabled. After that copies are sent in burst mode using ``rte_eth_tx_burst()``.
> +dequeues copied packets from the ``rx_to_tx_ring``. Then, each packet MAC address is changed
> +if it was enabled. After that. copies are sent in burst mode using ``rte_eth_tx_burst()``.

a comma should place after "After that"

>  
>  
>  .. literalinclude:: ../../../examples/dma/dmafwd.c
> @@ -307,7 +307,7 @@ if it was enabled. After that copies are sent in burst mode using ``rte_eth_tx_b
>  The Packet Copying Functions
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  
> -In order to perform SW packet copy, there are user-defined functions to first copy
> +In order to perform SW packet copy, there are user-defined functions to the first copy
>  the packet metadata (``pktmbuf_metadata_copy()``) and then the packet data
>  (``pktmbuf_sw_copy()``):
>  
> @@ -321,5 +321,5 @@ The metadata in this example is copied from ``rx_descriptor_fields1`` marker of
>  ``rte_mbuf`` struct up to ``buf_len`` member.
>  
>  In order to understand why software packet copying is done as shown
> -above please refer to the "Mbuf Library" section of the
> +above, please refer to the "Mbuf Library" section of the
>  *DPDK Programmer's Guide*.
> diff --git a/doc/guides/sample_app_ug/ethtool.rst b/doc/guides/sample_app_ug/ethtool.rst
> index 159e9e0639..433175368b 100644

...

  reply	other threads:[~2024-10-08  3:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-06 23:45 Nandini Persad
2024-10-08  3:34 ` fengchengwen [this message]
2024-10-09 19:21 ` Stephen Hemminger
2024-10-10  2:51 [PATCH] " Nandini Persad
2024-10-10 20:32 ` [PATCH v2] " Nandini Persad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3395c12-a73e-49a3-8adf-719ed0647229@huawei.com \
    --to=fengchengwen@huawei.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=john.mcnamara@intel.com \
    --cc=kevin.laatz@intel.com \
    --cc=konstantin.v.ananyev@yandex.ru \
    --cc=nandinipersad361@gmail.com \
    --cc=orika@nvidia.com \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).