From: Vladislav Zolotarov Date: Sun, 28 Feb 2010 00:12:02 +0000 (+0000) Subject: bnx2x: Tx barriers and locks X-Git-Tag: v2.6.34-rc1~233^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c16cc0b464b8876cfd57ce1c1dbcb6f9a6a0bce3;p=pandora-kernel.git bnx2x: Tx barriers and locks [Resending with the proper subject. Sorry for the mess. ] This patch is based on the RFC of Stanislaw Gruszka. More specifically it fixes two possible races: - One, described by Stanislaw, may lead to permanent disabling of the Tx queue. This is fixed by adding the smp_wmb() to propagate the BD consumer change towards the memory. - Second may lead to bnx2x_start_xmit() returning NETDEV_TX_BUSY. This is fixed by taking a tx_lock() before rechecking the number of available Tx BDs. thanks, vlad Signed-off-by: Stanislaw Gruszka Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed