devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 net] dt-bindings: net: dwmac: fix queue priority documentation
@ 2021-01-11  8:14 Sebastien Laveze
  2021-01-11 23:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Laveze @ 2021-01-11  8:14 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Rob Herring, Alexandre Torgue,
	Giuseppe Cavallaro, Jose Abreu, netdev, devicetree

From: Seb Laveze <sebastien.laveze@nxp.com>

The priority field is not the queue priority (queue priority is fixed)
but a bitmask of priorities assigned to this queue.

In receive, priorities relate to tagged frames priorities.

In transmit, priorities relate to PFC frames.

Signed-off-by: Seb Laveze <sebastien.laveze@nxp.com>
---
 Documentation/devicetree/bindings/net/snps,dwmac.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index b2f6083f556a..dfbf5fe4547a 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -161,7 +161,8 @@ properties:
             * snps,route-dcbcp, DCB Control Packets
             * snps,route-up, Untagged Packets
             * snps,route-multi-broad, Multicast & Broadcast Packets
-          * snps,priority, RX queue priority (Range 0x0 to 0xF)
+          * snps,priority, bitmask of the tagged frames priorities assigned to
+            the queue
 
   snps,mtl-tx-config:
     $ref: /schemas/types.yaml#/definitions/phandle
@@ -188,7 +189,10 @@ properties:
             * snps,idle_slope, unlock on WoL
             * snps,high_credit, max write outstanding req. limit
             * snps,low_credit, max read outstanding req. limit
-          * snps,priority, TX queue priority (Range 0x0 to 0xF)
+          * snps,priority, bitmask of the priorities assigned to the queue.
+            When a PFC frame is received with priorities matching the bitmask,
+            the queue is blocked from transmitting for the pause time specified
+            in the PFC frame.
 
   snps,reset-gpio:
     deprecated: true
-- 
2.25.1


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

* Re: [PATCH v1 net] dt-bindings: net: dwmac: fix queue priority documentation
  2021-01-11  8:14 [PATCH v1 net] dt-bindings: net: dwmac: fix queue priority documentation Sebastien Laveze
@ 2021-01-11 23:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-11 23:30 UTC (permalink / raw)
  To: Sebastien Laveze
  Cc: davem, kuba, robh+dt, alexandre.torgue, peppe.cavallaro, joabreu,
	netdev, devicetree

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Mon, 11 Jan 2021 09:14:07 +0100 you wrote:
> From: Seb Laveze <sebastien.laveze@nxp.com>
> 
> The priority field is not the queue priority (queue priority is fixed)
> but a bitmask of priorities assigned to this queue.
> 
> In receive, priorities relate to tagged frames priorities.
> 
> [...]

Here is the summary with links:
  - [v1,net] dt-bindings: net: dwmac: fix queue priority documentation
    https://git.kernel.org/netdev/net/c/938288349ca8

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2021-01-12  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-11  8:14 [PATCH v1 net] dt-bindings: net: dwmac: fix queue priority documentation Sebastien Laveze
2021-01-11 23:30 ` patchwork-bot+netdevbpf

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).