DPDK usage discussions
 help / color / mirror / Atom feed
* need definitions / references
@ 2022-03-17 16:05 fwefew 4t4tg
  2022-03-17 16:48 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: fwefew 4t4tg @ 2022-03-17 16:05 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

DPDK provides but does not define (that I can see at least) these TXQ
config fields. What are these fields what do they do?

https://doc.dpdk.org/api/structrte__eth__thresh.html
uint8_t pthresh
uint8_t hthresh
uint8_t wthresh

And here: What is the RS bit?
https://doc.dpdk.org/api/structrte__eth__txconf.html
uint16_t tx_rs_thresh.

And some what unrelated: What is a ``doorbell"? this is something I
continue to run into esp. in Mellanox NIC papers? Doorbell counts are
reported for AWS NICs at least with xstats api:

tx_q0_doorbells: 18812
tx_q1_doorbells: 18861

[-- Attachment #2: Type: text/html, Size: 1364 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: need definitions / references
  2022-03-17 16:05 need definitions / references fwefew 4t4tg
@ 2022-03-17 16:48 ` Stephen Hemminger
  2022-03-17 16:59   ` fwefew 4t4tg
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2022-03-17 16:48 UTC (permalink / raw)
  To: fwefew 4t4tg; +Cc: users

On Thu, 17 Mar 2022 12:05:33 -0400
fwefew 4t4tg <7532yahoo@gmail.com> wrote:

> DPDK provides but does not define (that I can see at least) these TXQ
> config fields. What are these fields what do they do?
> 
> https://doc.dpdk.org/api/structrte__eth__thresh.html
> uint8_t pthresh
> uint8_t hthresh
> uint8_t wthresh

These are low level details inherited from original Intel NIC's (ie ixgbe)
they only apply to some NICs. They are used to control the ring threshold
values relating to PCI.

In rte_ethdev.h
/**
 * A structure used to configure the ring threshold registers of an Rx/Tx
 * queue for an Ethernet port.
 */
struct rte_eth_thresh {
	uint8_t pthresh; /**< Ring prefetch threshold. */
	uint8_t hthresh; /**< Ring host threshold. */
	uint8_t wthresh; /**< Ring writeback threshold. */
};


> And here: What is the RS bit?
> https://doc.dpdk.org/api/structrte__eth__txconf.html
> uint16_t tx_rs_thresh.

Ready to Send?

> 
> And some what unrelated: What is a ``doorbell"? this is something I
> continue to run into esp. in Mellanox NIC papers? Doorbell counts are
> reported for AWS NICs at least with xstats api:
> 
> tx_q0_doorbells: 18812
> tx_q1_doorbells: 18861

These are how many times driver needed to poke hardware to tell it
that new packets are ready to send.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: need definitions / references
  2022-03-17 16:48 ` Stephen Hemminger
@ 2022-03-17 16:59   ` fwefew 4t4tg
  0 siblings, 0 replies; 3+ messages in thread
From: fwefew 4t4tg @ 2022-03-17 16:59 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: users

[-- Attachment #1: Type: text/plain, Size: 2075 bytes --]

Mr. Hemminger,

Thank you once again for your help.

Now, I did see the one-liner DPDK puts in code which you reference:

struct rte_eth_thresh {
        uint8_t pthresh; /**< Ring prefetch threshold. */
        uint8_t hthresh; /**< Ring host threshold. */
        uint8_t wthresh; /**< Ring writeback threshold. */
};

The problem for me is I don't know what "ring host threshold" or "ring
writeback" means.

"Ring prefetch threshold" I think I understand. This refers to how mbufs
are pending in the ring before it starts writing them onto the wire. This
seems to have some connection to tx_rs_thresh.

On Thu, Mar 17, 2022 at 12:48 PM Stephen Hemminger <
stephen@networkplumber.org> wrote:

> On Thu, 17 Mar 2022 12:05:33 -0400
> fwefew 4t4tg <7532yahoo@gmail.com> wrote:
>
> > DPDK provides but does not define (that I can see at least) these TXQ
> > config fields. What are these fields what do they do?
> >
> > https://doc.dpdk.org/api/structrte__eth__thresh.html
> > uint8_t pthresh
> > uint8_t hthresh
> > uint8_t wthresh
>
> These are low level details inherited from original Intel NIC's (ie ixgbe)
> they only apply to some NICs. They are used to control the ring threshold
> values relating to PCI.
>
> In rte_ethdev.h
> /**
>  * A structure used to configure the ring threshold registers of an Rx/Tx
>  * queue for an Ethernet port.
>  */
> struct rte_eth_thresh {
>         uint8_t pthresh; /**< Ring prefetch threshold. */
>         uint8_t hthresh; /**< Ring host threshold. */
>         uint8_t wthresh; /**< Ring writeback threshold. */
> };
>
>
> > And here: What is the RS bit?
> > https://doc.dpdk.org/api/structrte__eth__txconf.html
> > uint16_t tx_rs_thresh.
>
> Ready to Send?
>
> >
> > And some what unrelated: What is a ``doorbell"? this is something I
> > continue to run into esp. in Mellanox NIC papers? Doorbell counts are
> > reported for AWS NICs at least with xstats api:
> >
> > tx_q0_doorbells: 18812
> > tx_q1_doorbells: 18861
>
> These are how many times driver needed to poke hardware to tell it
> that new packets are ready to send.
>

[-- Attachment #2: Type: text/html, Size: 3039 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-17 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 16:05 need definitions / references fwefew 4t4tg
2022-03-17 16:48 ` Stephen Hemminger
2022-03-17 16:59   ` fwefew 4t4tg

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/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 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


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