Skip to contentSkip to conversation

doc: announce changes to rte_eth_set_queue_rate_limit api

PATCH Superseded [email protected] 5 participants 12 messages Jul 1, 2022 – Jul 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: announce changes to rte_eth_set_queue_rate_limit api

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint64_t to support more than 64Gbps.

---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
index 4e5b23c..5bf2b72 100644
@@ -125,3 +125,8 @@ Deprecation Notices
   applications should be updated to use the ``dmadev`` library instead,
   with the underlying HW-functionality being provided by the ``ioat`` or
   ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint64_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 15 lines · On 7/1/22 18:32, [email protected] wrote:

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint64_t to support more than 64Gbps.

---
  doc/guides/rel_notes/deprecation.rst | 5 +++++
  1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index 4e5b23c..5bf2b72 100644

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 132

Quoted 8 lines
doc/guides/rel_notes/deprecation.rst +5 -0
@@ -125,3 +125,8 @@ Deprecation Notices
    applications should be updated to use the ``dmadev`` library instead,
    with the underlying HW-functionality being provided by the ``ioat`` or
    ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint64_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.

I fully agree that uint16_t is not enough, but I'd like to understand the reason behind uint64_t vs uint32_t. It looks like uint32_t is more than enough.

#2 lore raw

-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Thursday, July 7, 2022 6:23 PM
To: Satha Koteswara Rao Kottidi <[email protected]>; Ray Kinsella <[email protected]>
Cc: [email protected]
Subject: [EXT] Re: [PATCH] doc: announce changes to rte_eth_set_queue_rate_limit api

External Email

----------------------------------------------------------------------

Quoted 16 lines · On 7/1/22 18:32, [email protected] wrote:

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint64_t to support more than 64Gbps.

---
  doc/guides/rel_notes/deprecation.rst | 5 +++++
  1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index 4e5b23c..5bf2b72 100644

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 132

Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +7 -0
@@ -125,3 +125,8 @@ Deprecation Notices
    applications should be updated to use the ``dmadev`` library instead,
    with the underlying HW-functionality being provided by the ``ioat`` or
    ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. 
+``rate``
+  parameter will be modified to uint64_t in DPDK 22.11 so that it can 
+work for
+  more than 64Gbps.

I fully agree that uint16_t is not enough, but I'd like to understand the reason behind uint64_t vs uint32_t. It looks like uint32_t is more than enough.

Quoted 1 line
Quoted 1 line

yes uint32_t is enough, proposed uint64_t so that the rate in TM shaper profile is also uint64_t in bps

#3 lore raw

Hi Andrew,

Are you convinced with my response, or you want me to change this field to uint32_t?

Thanks,
Satha.

-----Original Message-----
From: Satha Koteswara Rao Kottidi <[email protected]>
Sent: Thursday, July 7, 2022 7:09 PM
To: Andrew Rybchenko <[email protected]>; Ray Kinsella <[email protected]>
Cc: [email protected]
Subject: RE: [EXT] Re: [PATCH] doc: announce changes to rte_eth_set_queue_rate_limit api

-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Thursday, July 7, 2022 6:23 PM
To: Satha Koteswara Rao Kottidi <[email protected]>; Ray Kinsella <[email protected]>
Cc: [email protected]
Subject: [EXT] Re: [PATCH] doc: announce changes to rte_eth_set_queue_rate_limit api

External Email

----------------------------------------------------------------------

Quoted 16 lines · On 7/1/22 18:32, [email protected] wrote:

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint64_t to support more than 64Gbps.

---
  doc/guides/rel_notes/deprecation.rst | 5 +++++
  1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index 4e5b23c..5bf2b72 100644

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 132

Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +7 -0
@@ -125,3 +125,8 @@ Deprecation Notices
    applications should be updated to use the ``dmadev`` library instead,
    with the underlying HW-functionality being provided by the ``ioat`` or
    ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. 
+``rate``
+  parameter will be modified to uint64_t in DPDK 22.11 so that it can 
+work for
+  more than 64Gbps.

I fully agree that uint16_t is not enough, but I'd like to understand the reason behind uint64_t vs uint32_t. It looks like uint32_t is more than enough.

Quoted 2 lines
Quoted 2 lines

yes uint32_t is enough, proposed uint64_t so that the rate in TM shaper profile is also uint64_t in bps

#4 lore raw
In reply to Satha Koteswara Rao Kottidi

07/07/2022 15:38, Satha Koteswara Rao Kottidi:

Quoted 13 lines

From: Andrew Rybchenko <[email protected]>

Quoted 11 lines · On 7/1/22 18:32, [email protected] wrote:

Review

Quoted 6 lines

+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps. + This parameter declared as uint16_t, queue rate limited to 64Gbps. +``rate``

(quoted diff) +3 -0
+  parameter will be modified to uint64_t in DPDK 22.11 so that it can
+work for
+  more than 64Gbps.

I fully agree that uint16_t is not enough, but I'd like to understand the reason behind uint64_t vs uint32_t. It looks like uint32_t is more than enough.

Quoted 1 line

yes uint32_t is enough, proposed uint64_t so that the rate in TM shaper profile is also uint64_t in bps

I don't see how both are related.
Why not stick to uint32_t for this parameter?

Also I'm not sure it is breakage.
If it was, it could have been handled with function versioning. But anyway it is a small change, I am OK with uint32_t.

#5 lore raw

Thanks Thomas. I will send v2 with uint32_t type.

Thanks,
Satha.

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, July 12, 2022 7:34 PM
To: Satha Koteswara Rao Kottidi <[email protected]>
Cc: Andrew Rybchenko <[email protected]>; Ray Kinsella <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Jerin Jacob Kollanukkaran <[email protected]>
Subject: Re: [EXT] Re: [PATCH] doc: announce changes to rte_eth_set_queue_rate_limit api

07/07/2022 15:38, Satha Koteswara Rao Kottidi:

Quoted 14 lines

From: Andrew Rybchenko <[email protected]>

Quoted 12 lines · On 7/1/22 18:32, [email protected] wrote:

Review

Quoted 7 lines

+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes +``rate``
in Mbps. + This parameter declared as uint16_t, queue rate limited to 64Gbps. +``rate``

(quoted diff) +3 -0
+  parameter will be modified to uint64_t in DPDK 22.11 so that it 
+can work for
+  more than 64Gbps.

I fully agree that uint16_t is not enough, but I'd like to understand the reason behind uint64_t vs uint32_t. It looks like uint32_t is more than enough.

Quoted 2 lines

yes uint32_t is enough, proposed uint64_t so that the rate in TM shaper profile is also uint64_t in bps

I don't see how both are related.
Why not stick to uint32_t for this parameter?

Also I'm not sure it is breakage.
If it was, it could have been handled with function versioning. But anyway it is a small change, I am OK with uint32_t.

#6 lore raw

PATCH v2 1/1 doc: announce changes to rte_eth_set_queue_rate_limit api

In reply to [email protected]

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint32_t to support more than 64Gbps.

---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
index 4e5b23c..36e0f67 100644
@@ -125,3 +125,8 @@ Deprecation Notices
   applications should be updated to use the ``dmadev`` library instead,
   with the underlying HW-functionality being provided by the ``ioat`` or
   ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint32_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.
Signature · 1 line
1.8.3.1
Acked-by on v2 1/1
#7 lore raw
Quoted 7 lines · On Wed, Jul 13, 2022 at 11:59 AM <[email protected]> wrote:

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint32_t to support more than 64Gbps.

With api to API change in subject line

Quoted 20 lines
---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -1
index 4e5b23c..36e0f67 100644
@@ -125,3 +125,8 @@ Deprecation Notices
   applications should be updated to use the ``dmadev`` library instead,
   with the underlying HW-functionality being provided by the ``ioat`` or
   ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint32_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.
--

1.8.3.1

#8 lore raw

PATCH v3 1/1 doc: announce changes to rte_eth_set_queue_rate_limit API

In reply to [email protected]

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint32_t to support more than 64Gbps.

---

v2: Modified rate to uint32_t as per review comments
v3: api in subject line changed to API

---

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
index 4e5b23c..36e0f67 100644
@@ -125,3 +125,8 @@ Deprecation Notices
   applications should be updated to use the ``dmadev`` library instead,
   with the underlying HW-functionality being provided by the ``ioat`` or
   ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint32_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.
Signature · 1 line
1.8.3.1
Acked-by on v3 1/1
#9 lore raw

Re: [PATCH v3] doc: announce changes to rte_eth_set_queue_rate_limit API

Quoted 22 lines · On 7/15/22 16:25, [email protected] wrote:

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint32_t to support more than 64Gbps.

---

v2: Modified rate to uint32_t as per review comments
v3: api in subject line changed to API

---

  doc/guides/rel_notes/deprecation.rst | 5 +++++
  1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index 4e5b23c..36e0f67 100644

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 132

Quoted 8 lines
doc/guides/rel_notes/deprecation.rst +5 -0
@@ -125,3 +125,8 @@ Deprecation Notices
    applications should be updated to use the ``dmadev`` library instead,
    with the underlying HW-functionality being provided by the ``ioat`` or
    ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint32_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.
Acked-by
#10 lore raw

Re: [PATCH v3] doc: announce changes to rte_eth_set_queue_rate_limit API

Quoted 19 lines · Andrew Rybchenko
Quoted 17 lines · On 7/15/22 16:25, [email protected] wrote:

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint32_t to support more than 64Gbps.

---

v2: Modified rate to uint32_t as per review comments
v3: api in subject line changed to API

---

  doc/guides/rel_notes/deprecation.rst | 5 +++++
  1 file changed, 5 insertions(+)
Quoted 15 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 132

Quoted 13 lines
doc/guides/rel_notes/deprecation.rst +5 -0
index 4e5b23c..36e0f67 100644
@@ -125,3 +125,8 @@ Deprecation Notices
    applications should be updated to use the ``dmadev`` library instead,
    with the underlying HW-functionality being provided by the ``ioat`` or
    ``idxd`` dma drivers
+
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint32_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.
Acked-by Applied
#11 lore raw

Re: [PATCH v3] doc: announce changes to rte_eth_set_queue_rate_limit API

15/07/2022 18:29, Ajit Khaparde:

Quoted 11 lines
Quoted 9 lines · Andrew Rybchenko
Quoted 7 lines · On 7/15/22 16:25, [email protected] wrote:

From: Satha Rao <[email protected]>

rte_eth_set_queue_rate_limit argument rate modified to uint32_t to support more than 64Gbps.

[...]

Quoted 7 lines
Quoted 6 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 132

Quoted 4 lines
doc/guides/rel_notes/deprecation.rst +4 -0
+* ethdev: The function ``rte_eth_set_queue_rate_limit`` takes ``rate`` in Mbps.
+  This parameter declared as uint16_t, queue rate limited to 64Gbps. ``rate``
+  parameter will be modified to uint32_t in DPDK 22.11 so that it can work for
+  more than 64Gbps.

With a bit of English grammar rewording,

Applied, thanks.