net: r6040: Increase statistics upon transmit completion
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 4 Jul 2016 21:36:02 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 07:10:28 +0000 (00:10 -0700)
commit7def171ddc93c504bd91ccb56b802392770621c5
tree6872d152458f4ee92d4be6965f6250bcb4384c2e
parent3eb415d1afd0ec22d2cba33877da036f83098105
net: r6040: Increase statistics upon transmit completion

r6040_xmit() is increasing transmit statistics during transmission while
this may still fail, do this in r6040_tx() where we complete transmitted
buffers instead.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c