cns3xxx: ethernet - clean up tx descs only when needed
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 27 Feb 2014 23:02:43 +0000 (23:02 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 27 Feb 2014 23:02:43 +0000 (23:02 +0000)
commit0772ab938c0aedd7f4cc7127059d6ce8cf929dfa
tree47a03bb4681f97ad197b6b6d1778dab0221d6f29
parentffa5faa7ae3ecd7dc74d12dccd4b63ce4a5cff26
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39762 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c