net: arc_emac: prevent reuse of unreclaimed tx descriptors
authorBeniamino Galvani <b.galvani@gmail.com>
Wed, 10 Sep 2014 20:50:03 +0000 (22:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2014 21:18:03 +0000 (17:18 -0400)
commit74dd40bca95f9968e368751ea81f3b98471109ce
tree3af460f097438ad1de67bc6db1f4c8999e998541
parent7ce7679d6bbd1715799a9cf17b9b558bc2d962b7
net: arc_emac: prevent reuse of unreclaimed tx descriptors

This patch changes the logic in tx path to ensure that tx descriptors
are reused for transmission only after they have been reclaimed by
arc_emac_tx_clean().

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c