cns3xxx: ethernet - clean up tx descs only when needed
authorFelix Fietkau <nbd@openwrt.org>
Thu, 27 Feb 2014 23:02:43 +0000 (23:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 27 Feb 2014 23:02:43 +0000 (23:02 +0000)
commit2f8a2d4545b56290fd95503eb0773e2cf131afa8
tree47a03bb4681f97ad197b6b6d1778dab0221d6f29
parentce67123fd9723b4c4f87e08b1e1347aba6bc7583
cns3xxx: ethernet - clean up tx descs only when needed

We already clean up tx descriptors in the napi eth_poll() function so it
would likely be rare to run out of available descriptors in eth_xmit. Thus
we can clean them up only when needed and return busy only when we
still don't have enough.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 39762
target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c