Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 0adf0f3e authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Vignesh Raghavendra
Browse files

net: ethernet: ti: am65-cpsw-qos: fix dma per-queue rate checks


There is a HW limitation that dma per-queue rate limiting has to be enabled
sequentially from hi->lo channels. The driver performs checks for above,
but does it incorrectly, as result it's not possible to disable rate
limiting for the channel:

echo 100 > /sys/class/net/eth0/queues/tx-7/tx_maxrate
echo 0 > /sys/class/net/eth0/queues/tx-7/tx_maxrate
^ will fail.

This patch fixes above issue.

Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent bb288555
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment