From: Daniel Mack Date: Tue, 12 Mar 2013 06:31:19 +0000 (+0000) Subject: net: ethernet: cpsw: fix usage of cpdma_check_free_tx_desc() X-Git-Tag: v3.9-rc4~27^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d35162f89b8f00537d7b240b76d2d0e8b8d29aa0;p=pandora-kernel.git net: ethernet: cpsw: fix usage of cpdma_check_free_tx_desc() Commit fae50823d0 ("net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors") introduced a function to check the current allocation state of tx packets. The return value is taken into account to stop the netqork queue on the adapter in case there are no free slots. However, cpdma_check_free_tx_desc() returns 'true' if there is room in the bitmap, not 'false', so the usage of the function is wrong. Signed-off-by: Daniel Mack Cc: Mugunthan V N Reported-by: Sven Neumann Reported-by: Andreas Fenkart Tested-by: Mugunthan V N Acked-by: Mugunthan V N Tested-by: Andreas Fenkart Signed-off-by: David S. Miller --- Reading git-diff-tree failed