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)
commit8665c57923fa16474713b845f96e703d22304091
treeeea009de79ef2a8ddc80b16ba78828a594ceba83
parent96eb3d883dde86b8af2748d5932d5c53a35dbb8c
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