]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: davinci_cpdma: add weight function for channels
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 29 Nov 2016 15:00:47 +0000 (17:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 19:37:13 +0000 (14:37 -0500)
commit9d0da102c0c3095673e3bf7dc077970d5be93b22
tree3ecb3cb7544ae379475471c39d979fbc5cbab4d1
parent5b3d03a8885f38aaa9dcded51ffa726357da0ae9
net: ethernet: ti: davinci_cpdma: add weight function for channels

The weight of a channel is needed to split descriptors between
channels. The weight can depend on maximum rate of channels, maximum
rate of an interface or other reasons. The channel weight is in
percentage and is independent for rx and tx channels.

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