net: ethernet: ti: cpsw: add multi queue support
The cpsw h/w supports up to 8 tx and 8 rx channels. This patch adds multi-queue support to the driver only, shaper configuration will be added with separate patch series. Default shaper mode, as before, priority mode, but with corrected priority order, 0 - is highest priority, 7 - lowest. The poll function handles all unprocessed channels, till all of them are free, beginning from hi priority channel. In dual_emac mode the channels are shared between two network devices, as it's with single-queue default mode. The statistic for every channel can be read with: $ ethtool -S ethX 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>
This commit is contained in:

committed by
David S. Miller

parent
080d5c5ac8
commit
e05107e6b7
@@ -403,6 +403,18 @@ void cpdma_ctlr_eoi(struct cpdma_ctlr *ctlr, u32 value)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctlr_eoi);
|
||||
|
||||
u32 cpdma_ctrl_rxchs_state(struct cpdma_ctlr *ctlr)
|
||||
{
|
||||
return dma_reg_read(ctlr, CPDMA_RXINTSTATMASKED);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctrl_rxchs_state);
|
||||
|
||||
u32 cpdma_ctrl_txchs_state(struct cpdma_ctlr *ctlr)
|
||||
{
|
||||
return dma_reg_read(ctlr, CPDMA_TXINTSTATMASKED);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctrl_txchs_state);
|
||||
|
||||
/**
|
||||
* cpdma_chan_split_pool - Splits ctrl pool between all channels.
|
||||
* Has to be called under ctlr lock
|
||||
|
Reference in New Issue
Block a user