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)
commit9763f432cfdd75b799d8c9aa10c8eb5277746275
treeaad73371e4bd2ad0affcc3be392e602f97b97e36
parent45dce2ab93345f7840230ce9902379d47938a899
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44234 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c