diff options
author | Claudiu Manoil <claudiu.manoil@freescale.com> | 2013-03-19 08:40:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 18:21:53 +0100 |
commit | 800c644bcd0f2b29020c0dd6b661596c14c0f34f (patch) | |
tree | 480929931c8d691b5b039a5c3acc9d33c2798423 /drivers/net/ethernet/freescale/gianfar_ethtool.c | |
parent | gianfar: Remove redundant programming of [rt]xic registers (diff) | |
download | linux-800c644bcd0f2b29020c0dd6b661596c14c0f34f.tar.xz linux-800c644bcd0f2b29020c0dd6b661596c14c0f34f.zip |
gianfar: Refactor config coalescing calls for all queues
The only place where gfar_configure_coalescing is called
with an actual bitmask (other than 0xff) is in gfar_poll
(on the hot path). So make gfar_configure_coalescing()
static for the buffer processing path, and export
gfar_configure_coalescing_all() for the remaining cases
that require to set coalescing for all the queues at once
(on the slow path).
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar_ethtool.c b/drivers/net/ethernet/freescale/gianfar_ethtool.c index 75e89acf4912..8248df760aad 100644 --- a/drivers/net/ethernet/freescale/gianfar_ethtool.c +++ b/drivers/net/ethernet/freescale/gianfar_ethtool.c @@ -436,7 +436,7 @@ static int gfar_scoalesce(struct net_device *dev, gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs)); } - gfar_configure_coalescing(priv, 0xFF, 0xFF); + gfar_configure_coalescing_all(priv); return 0; } |