ramips: fix ethernet driver tx completion polling
authorFelix Fietkau <nbd@openwrt.org>
Sun, 1 Feb 2015 08:20:37 +0000 (08:20 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 1 Feb 2015 08:20:37 +0000 (08:20 +0000)
commit10c8d8c4833c178b4a30871f020637c7ba94d014
tree29dbe725c921e04cf3d63eb103a1c9e0097227dc
parent12c7c25398d1f5a7588aabe61eb053a1026e9854
ramips: fix ethernet driver tx completion polling

- budget is decremented with completed frames, so don't check if done is
smaller
- ACK the interrupt before processing further frames to fix a small race
condition.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44234
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c