net: bcmgenet: correct return value of __bcmgenet_tx_reclaim
authorDoug Berger <opendmb@gmail.com>
Tue, 14 Mar 2017 00:41:38 +0000 (17:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 04:51:50 +0000 (21:51 -0700)
commitc4d453d2b14d4c844fd6b492fbd16ce0615a59d8
tree381315684d210d4ea87064daa3da20c7454efd8b
parentd5810ca3252a5bf61e5b2fc789da456e0f65ba8c
net: bcmgenet: correct return value of __bcmgenet_tx_reclaim

The reclaim function should return the number of buffer descriptors
reclaimed, not just the number corresponding to skb packets.

Also, remove the unnecessary computation when updating the consumer
index.

While this is not a functional problem it could degrade performance
of napi in a fragmented transmit stream.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c