diff options
author | Daniel Mack | 2013-03-12 07:31:19 +0100 |
---|---|---|
committer | David S. Miller | 2013-03-13 09:47:18 +0100 |
commit | d35162f89b8f00537d7b240b76d2d0e8b8d29aa0 (patch) | |
tree | 115ab859c528b0a5bf51296528f5006de009e99f /drivers/net/ethernet/amd/am79c961a.h | |
parent | net/core: move vlan_depth out of while loop in skb_network_protocol() (diff) | |
download | kernel-qcow2-linux-d35162f89b8f00537d7b240b76d2d0e8b8d29aa0.tar.gz kernel-qcow2-linux-d35162f89b8f00537d7b240b76d2d0e8b8d29aa0.tar.xz kernel-qcow2-linux-d35162f89b8f00537d7b240b76d2d0e8b8d29aa0.zip |
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 <zonque@gmail.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Reported-by: Sven Neumann <s.neumann@raumfeld.com>
Reported-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Tested-by: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/am79c961a.h')
0 files changed, 0 insertions, 0 deletions