]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] iseries_veth: Fix bogus counting of TX errors
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 1 Sep 2005 01:29:19 +0000 (11:29 +1000)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 1 Sep 2005 02:42:45 +0000 (22:42 -0400)
commitdb5e8718eac0b8166d6fd05b1ed7f8114c243988
treee0adc928ffa6735e228c6fd2867381f8442875e7
parente0808494ff44d5cedcaf286bb8a93d08e8d9af49
[PATCH] iseries_veth: Fix bogus counting of TX errors

There's a number of problems with the way iseries_veth counts TX errors.

Firstly it counts conditions which aren't really errors as TX errors. This
includes if we don't have a connection struct for the other LPAR, or if the
other LPAR is currently down (or just doesn't want to talk to us). Neither
of these should count as TX errors.

Secondly, it counts one TX error for each LPAR that fails to accept the packet.
This can lead to TX error counts higher than the total number of packets sent
through the interface. This is confusing for users.

This patch fixes that behaviour. The non-error conditions are no longer
counted, and we introduce a new and I think saner meaning to the TX counts.

If a packet is successfully transmitted to any LPAR then it is transmitted
and tx_packets is incremented by 1.

If there is an error transmitting a packet to any LPAR then that is counted
as one error, ie. tx_errors is incremented by 1.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/iseries_veth.c