summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSieng Piaw Liew <liew.s.piaw@gmail.com>2021-01-06 22:42:04 +0800
committerJakub Kicinski <kuba@kernel.org>2021-01-07 12:39:53 -0800
commit375281d3a6dcabaa98f489ee412aedca6d99dffb (patch)
treeaf180ff8ffbe164ae76e3f31f7260264acd89db9
parent4c59b0f5543db80abbbe9efdd9b25e7899501db5 (diff)
bcm63xx_enet: add xmit_more support
Support bulking hardware TX queue by using netdev_xmit_more(). Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/broadcom/bcm63xx_enet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index 90f8214b4d22..21744dae30ce 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -634,7 +634,8 @@ bcm_enet_start_xmit(struct sk_buff *skb, struct net_device *dev)
netdev_sent_queue(dev, skb->len);
/* kick tx dma */
- enet_dmac_writel(priv, priv->dma_chan_en_mask,
+ if (!netdev_xmit_more() || !priv->tx_desc_count)
+ enet_dmac_writel(priv, priv->dma_chan_en_mask,
ENETDMAC_CHANCFG, priv->tx_chan);
/* stop queue if no more desc available */