From: Claudiu Manoil Date: Mon, 17 Feb 2014 10:53:19 +0000 (+0200) Subject: gianfar: Remove clean_rx_ring race from gfar_ethtool X-Git-Tag: v3.15-rc1~113^2~317^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cca336ae1b27909526987e076388a388f668fe0;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed