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)
commit57261cd8d0d6798f2838cf3a0a34abb5bb53203e
treeaad73371e4bd2ad0affcc3be392e602f97b97e36
parentccc32f33c58c064f679aca281b46b84ca47511f9
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