Skip to content

Commit

Permalink
net: ethernet: ti: davinci_cpdma: add set rate for a channel
Browse files Browse the repository at this point in the history
The cpdma has 8 rate limited tx channels. This patch adds
ability for cpdma driver to use 8 tx h/w shapers. If at least one
channel is not rate limited then it must have higher number, this
is because the rate limited channels have to have higher priority
then not rate limited channels. The channel priority is set in low-hi
direction already, so that when a new channel is added with ethtool
and it doesn't have rate yet, it cannot affect on rate limited
channels. It can be useful for TSN streams and just in cases when
h/w rate limited channels are needed.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ivan Khoronzhuk authored and David S. Miller committed Nov 30, 2016
1 parent 0fc6432 commit 8f32b90
Show file tree
Hide file tree
Showing 2 changed files with 289 additions and 45 deletions.
Loading

0 comments on commit 8f32b90

Please sign in to comment.