DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>,
	Thomas Monjalon <thomas@monjalon.net>,
	Ferruh Yigit <ferruh.yigit@amd.com>,
	Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Subject: [PATCH v4 01/19] ethdev: reword dev_info_get description.
Date: Wed, 22 Feb 2023 08:25:21 -0800	[thread overview]
Message-ID: <20230222162539.127103-2-stephen@networkplumber.org> (raw)
In-Reply-To: <20230222162539.127103-1-stephen@networkplumber.org>

The original comment was redundant and had duplicate word 'of'.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/ethdev/rte_ethdev.h | 32 ++++----------------------------
 1 file changed, 4 insertions(+), 28 deletions(-)

diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h
index 049641d57c66..14b8fa8402f1 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib/ethdev/rte_ethdev.h
@@ -3275,34 +3275,10 @@ int rte_eth_macaddrs_get(uint16_t port_id, struct rte_ether_addr *ma,
 /**
  * Retrieve the contextual information of an Ethernet device.
  *
- * As part of this function, a number of of fields in dev_info will be
- * initialized as follows:
- *
- * rx_desc_lim = lim
- * tx_desc_lim = lim
- *
- * Where lim is defined within the rte_eth_dev_info_get as
- *
- *  const struct rte_eth_desc_lim lim = {
- *      .nb_max = UINT16_MAX,
- *      .nb_min = 0,
- *      .nb_align = 1,
- *	.nb_seg_max = UINT16_MAX,
- *	.nb_mtu_seg_max = UINT16_MAX,
- *  };
- *
- * device = dev->device
- * min_mtu = RTE_ETHER_MIN_LEN - RTE_ETHER_HDR_LEN - RTE_ETHER_CRC_LEN
- * max_mtu = UINT16_MAX
- *
- * The following fields will be populated if support for dev_infos_get()
- * exists for the device and the rte_eth_dev 'dev' has been populated
- * successfully with a call to it:
- *
- * driver_name = rte_driver_name(rte_dev_driver(dev->device));
- * nb_rx_queues = dev->data->nb_rx_queues
- * nb_tx_queues = dev->data->nb_tx_queues
- * dev_flags = &dev->data->dev_flags
+ * This function returns the Ethernet device information based
+ * on the values stored internally in the device specific data.
+ * For example: number of queues, descriptor limits, device
+ * capabilities and offload flags.
  *
  * @param port_id
  *   The port identifier of the Ethernet device.
-- 
2.39.1


  reply	other threads:[~2023-02-22 16:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0220722214106.162640-1-stephen@networkplumber.org>
2023-02-22 16:25 ` [PATCH v4 00/19] Remove repeated words in comments and messages Stephen Hemminger
2023-02-22 16:25   ` Stephen Hemminger [this message]
2023-02-22 16:25   ` [PATCH v4 02/19] remove repeated word 'to' Stephen Hemminger
2023-02-22 16:28     ` Dumitrescu, Cristian
2023-02-22 16:32     ` Hunt, David
2023-02-22 16:25   ` [PATCH v4 03/19] remove repeated word 'is' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 04/19] remove repeated word 'same' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 05/19] remove repeated word 'on' Stephen Hemminger
2023-02-22 16:31     ` Hunt, David
2023-02-22 16:25   ` [PATCH v4 06/19] remove repeated word 'in' Stephen Hemminger
2023-02-22 16:44     ` Van Haaren, Harry
2023-02-22 16:25   ` [PATCH v4 07/19] remove repeated word 'this' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 08/19] remove repeated word 'only' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 09/19] remove repeated word 'worker' Stephen Hemminger
2023-02-22 16:30     ` Hunt, David
2023-02-22 16:25   ` [PATCH v4 10/19] remove repeated word 'or' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 11/19] remove repeated word 'table' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 12/19] remove repeated word 'that' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 13/19] remove repeated word 'override' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 14/19] remove repeated word 'groups' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 15/19] remove repeated word 'page' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 16/19] remove repeated word 'individual' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 17/19] remove repeated word 'expected' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 18/19] remove repeated word 'be' Stephen Hemminger
2023-02-22 16:25   ` [PATCH v4 19/19] remove repeated word 'all' Stephen Hemminger
2023-03-12  9:41   ` [PATCH v4 00/19] Remove repeated words in comments and messages Thomas Monjalon

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=20230222162539.127103-2-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.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).