DPDK patches and discussions
 help / color / mirror / Atom feed
From: Chengchang Tang <tangchengchang@huawei.com>
To: <dev@dpdk.org>
Cc: <linuxarm@huawei.com>, <thomas@monjalon.net>,
	<arybchenko@solarflare.com>,  <ferruh.yigit@intel.com>
Subject: [dpdk-dev]  [RFC v2 0/3] add rx buffer size for rte_eth_rxq_info
Date: Wed, 22 Jul 2020 14:38:07 +0800
Message-ID: <1595399890-27300-1-git-send-email-tangchengchang@huawei.com> (raw)
In-Reply-To: <1592894934-57856-1-git-send-email-tangchengchang@huawei.com>

In common practice, PMD configure the rx buffer size which indicate the
buffer length could be used for hw in receiving packts according to the
data room size of the object in mempool. But in fact the final value is
related to the specifications of hw, and its values will affect the number
of fragments in recieving pkts when scatter is enabled. By the way, some
PMDs may force to enable scatter when the MTU is bigger than the hw rx
buffer size.

At present, we seem to have no way to expose relevant information to upper
layer users.

So, add a field named rx_buf_size in rte_eth_rxq_info to indicate the
buffer size used in recieving pkts for hw. And this patchset also add hns3
PMD implementation and update the testpmd to clarify intention.

Add hns3 implementation and update testpmd.

Chengchang Tang (2):
  ethdev: add a field for rte_eth_rxq_info
  app/testpmd: Add RX buffer size dispaly in queue info querry

Huisong Li (1):
  net/hns3: add support for query of rx/tx queue info

 app/test-pmd/config.c             |  1 +
 drivers/net/hns3/hns3_ethdev.c    |  2 ++
 drivers/net/hns3/hns3_ethdev_vf.c |  2 ++
 drivers/net/hns3/hns3_rxtx.c      | 48 +++++++++++++++++++++++++++++++++++++++
 drivers/net/hns3/hns3_rxtx.h      |  4 ++++
 lib/librte_ethdev/rte_ethdev.h    |  2 ++
 6 files changed, 59 insertions(+)


  parent reply	other threads:[~2020-07-22  6:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23  6:48 [dpdk-dev] [RFC] ethdev: add a field " Chengchang Tang
2020-06-23  9:30 ` Andrew Rybchenko
2020-06-24  3:48   ` Chengchang Tang
2020-06-24  8:52     ` Ferruh Yigit
2020-06-24 18:32       ` Ferruh Yigit
2020-06-25  9:06         ` Andrew Rybchenko
2020-06-23 14:48 ` Stephen Hemminger
2020-06-23 15:22   ` Andrew Rybchenko
2020-07-22  6:38 ` Chengchang Tang [this message]
2020-07-22  6:38   ` [dpdk-dev] [RFC v2 1/3] " Chengchang Tang
2020-07-22  6:38   ` [dpdk-dev] [RFC v2 2/3] net/hns3: add support for query of rx/tx queue info Chengchang Tang
2020-07-22  6:38   ` [dpdk-dev] [RFC v2 3/3] app/testpmd: Add RX buffer size dispaly in queue info querry Chengchang Tang
2020-07-28  6:29   ` [dpdk-dev] [RFC v2 0/3] add rx buffer size for rte_eth_rxq_info Chengchang Tang
2020-07-28  9:30     ` Ferruh Yigit
2020-07-28 11:39       ` Chengchang Tang
2020-07-28 15:27         ` 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:

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

  git send-email \
    --in-reply-to=1595399890-27300-1-git-send-email-tangchengchang@huawei.com \
    --to=tangchengchang@huawei.com \
    --cc=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=linuxarm@huawei.com \
    --cc=thomas@monjalon.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git