net: mv643xx_eth: Count dropped packets properly
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 30 May 2014 16:40:08 +0000 (13:40 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 23:16:06 +0000 (16:16 -0700)
commitdd11680d0e843a9e5519304a0e89dd3815439102
treec8c305588f2448a2317900978db9933702b4bf73
parent2e3173a3d38bbb5e29a6a734e7366855c12efbe9
net: mv643xx_eth: Count dropped packets properly

This commit fixes the current dropped packet count by doing it properly,
increasing the count when a packet is discarded; i.e. the packet is not
processed and the driver returns NETDEV_TX_OK.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c