Searched hist:"79 b3325d0d87a6b3af96485ff8029bcc26e070e3" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/net/ethernet/ti/ |
H A D | cpsw.c | diff 79b3325d0d87a6b3af96485ff8029bcc26e070e3 Mon Jul 23 23:26:29 CEST 2018 Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> net: ethernet: ti: cpsw: use cpdma channels in backward order for txq
The cpdma channel highest priority is from hi to lo number. The driver has limited number of descriptors that are shared between number of cpdma channels. Number of queues can be tuned with ethtool, that allows to not spend descriptors on not needed cpdma channels. In AVB usually only 2 tx queues can be enough with rate limitation. The rate limitation can be used only for hi priority queues. Thus, to use only 2 queues the 8 has to be created. It's wasteful.
So, in order to allow using only needed number of rate limited tx queues, save resources, and be able to set rate limitation for them, let assign tx cpdma channels in backward order to queues.
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|