diff options
author | Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> | 2016-08-22 21:18:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-23 00:13:10 -0700 |
commit | 3802dce178d244c02c6b11fdcbbd202ceac37f0a (patch) | |
tree | b285dc43c809b4e42f0a0bcd442d1b6778b16fbb /drivers/net/ethernet/ti/davinci_cpdma.h | |
parent | a01512dbe3ec1e7dc58b00161d61ead359f5ac08 (diff) | |
download | linux-stable-3802dce178d244c02c6b11fdcbbd202ceac37f0a.tar.gz linux-stable-3802dce178d244c02c6b11fdcbbd202ceac37f0a.tar.bz2 linux-stable-3802dce178d244c02c6b11fdcbbd202ceac37f0a.zip |
net: ethernet: ti: davinci_cpdma: split descs num between all channels
Tx channels share same pool of descriptors. Thus one channel can
block another if pool is emptied by one. But, the shaper should
decide which channel is allowed to send packets. To avoid such
impact of one channel on another, let every channel to have its
own piece of pool.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/davinci_cpdma.h')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_cpdma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/davinci_cpdma.h b/drivers/net/ethernet/ti/davinci_cpdma.h index 4b46cd6e9a3f..9119b43f4f7d 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.h +++ b/drivers/net/ethernet/ti/davinci_cpdma.h @@ -80,7 +80,7 @@ int cpdma_ctlr_stop(struct cpdma_ctlr *ctlr); struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, cpdma_handler_fn handler); -int cpdma_chan_get_rx_buf_num(struct cpdma_ctlr *ctlr); +int cpdma_chan_get_rx_buf_num(struct cpdma_chan *chan); int cpdma_chan_destroy(struct cpdma_chan *chan); int cpdma_chan_start(struct cpdma_chan *chan); int cpdma_chan_stop(struct cpdma_chan *chan); |