summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
diff options
context:
space:
mode:
authorJoao Pinto2017-03-15 12:04:50 +0100
committerDavid S. Miller2017-03-15 22:44:32 +0100
commit3c55d4d08bc9e94901a26eb57c9aa0b8c76a18c0 (patch)
tree8091d8867a65eed02c88133ba1495b33e1ff8aa6 /drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
parentnet: stmmac: prepare dma interrupt treatment for multiple queues (diff)
downloadkernel-qcow2-linux-3c55d4d08bc9e94901a26eb57c9aa0b8c76a18c0.tar.gz
kernel-qcow2-linux-3c55d4d08bc9e94901a26eb57c9aa0b8c76a18c0.tar.xz
kernel-qcow2-linux-3c55d4d08bc9e94901a26eb57c9aa0b8c76a18c0.zip
net: stmmac: rx watchdog config prepared for multiple queues
This patch adds rx watchdog configuration for all queues. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
index 61b9369a041e..16808e48ca1c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
@@ -730,6 +730,7 @@ static int stmmac_set_coalesce(struct net_device *dev,
struct ethtool_coalesce *ec)
{
struct stmmac_priv *priv = netdev_priv(dev);
+ u32 rx_cnt = priv->plat->rx_queues_to_use;
unsigned int rx_riwt;
/* Check not supported parameters */
@@ -768,7 +769,7 @@ static int stmmac_set_coalesce(struct net_device *dev,
priv->tx_coal_frames = ec->tx_max_coalesced_frames;
priv->tx_coal_timer = ec->tx_coalesce_usecs;
priv->rx_riwt = rx_riwt;
- priv->hw->dma->rx_watchdog(priv->ioaddr, priv->rx_riwt);
+ priv->hw->dma->rx_watchdog(priv->ioaddr, priv->rx_riwt, rx_cnt);
return 0;
}