Re: [PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-07-03 Thread Ivan Khoronzhuk
On 01.07.16 23:35, David Miller wrote: From: Ivan Khoronzhuk Date: Thu, 30 Jun 2016 22:04:35 +0300 @@ -720,7 +763,7 @@ unlock_ret: } EXPORT_SYMBOL_GPL(cpdma_chan_submit); -bool cpdma_check_free_tx_desc(struct cpdma_chan *chan) +inline bool

Re: [PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-07-03 Thread Ivan Khoronzhuk
On 01.07.16 23:35, David Miller wrote: From: Ivan Khoronzhuk Date: Thu, 30 Jun 2016 22:04:35 +0300 @@ -720,7 +763,7 @@ unlock_ret: } EXPORT_SYMBOL_GPL(cpdma_chan_submit); -bool cpdma_check_free_tx_desc(struct cpdma_chan *chan) +inline bool cpdma_check_free_desc(struct cpdma_chan *chan)

Re: [PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-07-01 Thread David Miller
From: Ivan Khoronzhuk Date: Thu, 30 Jun 2016 22:04:35 +0300 > @@ -720,7 +763,7 @@ unlock_ret: > } > EXPORT_SYMBOL_GPL(cpdma_chan_submit); > > -bool cpdma_check_free_tx_desc(struct cpdma_chan *chan) > +inline bool cpdma_check_free_desc(struct cpdma_chan *chan) > {

Re: [PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-07-01 Thread David Miller
From: Ivan Khoronzhuk Date: Thu, 30 Jun 2016 22:04:35 +0300 > @@ -720,7 +763,7 @@ unlock_ret: > } > EXPORT_SYMBOL_GPL(cpdma_chan_submit); > > -bool cpdma_check_free_tx_desc(struct cpdma_chan *chan) > +inline bool cpdma_check_free_desc(struct cpdma_chan *chan) > { This needs to be marked

[PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-06-30 Thread Ivan Khoronzhuk
Currently the tx channels are using the 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 peace of pool.

[PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-06-30 Thread Ivan Khoronzhuk
Currently the tx channels are using the 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 peace of pool.