diff options
author | Claudiu Manoil <claudiu.manoil@freescale.com> | 2014-02-17 12:53:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-18 15:03:02 -0500 |
commit | 7cca336ae1b27909526987e076388a388f668fe0 (patch) | |
tree | a92907a1923cdce54573d29abcab62c03d097c9a /drivers/of/of_mdio.c | |
parent | c10650b661b6c43c82c8e91b1d0b9b6adcf7f7dc (diff) | |
download | linux-7cca336ae1b27909526987e076388a388f668fe0.tar.bz2 |
gianfar: Remove clean_rx_ring race from gfar_ethtool
gfar_clean_rx_ring() was designed to be called from napi
(rx softirq) context to do the Rx processing. Calling it
from a process context like this is a bug as it will
clearly race with the napi Rx processing.
There's also no point in initializing num_txbdfree since
startup_gfar() already does that, when bringing the device
up again (after reset). Changing num_txbdfree "on-the-fly"
like this is also subject to race conditions. num_txbdfree
is handled by the Tx processing path and the device reset
procedure. Also, don't assume that num_rx_queues is always
equal to num_tx_queues.
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of/of_mdio.c')
0 files changed, 0 insertions, 0 deletions