diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2014-12-03 12:32:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-09 19:25:18 +0100 |
commit | 9b8d16cf81f9d5f7284aee55050fa6753535101b (patch) | |
tree | 35e0d2474c6dc1726f230686400ea932063551df /drivers | |
parent | net: sctp: use MAX_HEADER for headroom reserve in output path (diff) | |
download | linux-9b8d16cf81f9d5f7284aee55050fa6753535101b.tar.xz linux-9b8d16cf81f9d5f7284aee55050fa6753535101b.zip |
stmmac: fix max coal timer parameter
This patch is to fix the max coalesce timer setting that can be provided
by ethtool.
The default value (STMMAC_COAL_TX_TIMER) was used in the set_coalesce helper
instead of the max one (STMMAC_MAX_COAL_TX_TICK, so defined but not used).
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c index 3a08a1f78c73..771cda2a48b2 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c @@ -696,7 +696,7 @@ static int stmmac_set_coalesce(struct net_device *dev, (ec->tx_max_coalesced_frames == 0)) return -EINVAL; - if ((ec->tx_coalesce_usecs > STMMAC_COAL_TX_TIMER) || + if ((ec->tx_coalesce_usecs > STMMAC_MAX_COAL_TX_TICK) || (ec->tx_max_coalesced_frames > STMMAC_TX_MAX_FRAMES)) return -EINVAL; |