Forum | Documentation | Website | Blog

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

net: ethernet: ti: am65-cpsw: add .ndo to set dma per-queue rate


This patch allows to rate limit TX queues (DMA) for cpsw interface by
configuring the rate in absolute Mb/s units per TX queue.

Example:
    ethtool -L eth0 tx 4

    echo 100 > /sys/class/net/eth0/queues/tx-0/tx_maxrate
    echo 200 > /sys/class/net/eth0/queues/tx-1/tx_maxrate
    echo 50 > /sys/class/net/eth0/queues/tx-2/tx_maxrate
    echo 30 > /sys/class/net/eth0/queues/tx-3/tx_maxrate

Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 508e426b
Branches
Tags
No related merge requests found
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