]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: davinci_cpdma: add set rate for a channel
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 29 Nov 2016 15:00:48 +0000 (17:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 19:37:13 +0000 (14:37 -0500)
commit441a23f8def9553530959ecf382b30d9f478ca92
treea6bfda1388de2ddf393acaa45bef33bfab0f5046
parent1a171f8fe1bfacde0a1a25954e2aba6531e01b3d
net: ethernet: ti: davinci_cpdma: add set rate for a channel

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>
drivers/net/ethernet/ti/davinci_cpdma.c
drivers/net/ethernet/ti/davinci_cpdma.h