[netdrvr] sfc: Increment rx_reset when reported as driver event
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 7 May 2008 12:00:39 +0000 (13:00 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 13 May 2008 05:31:43 +0000 (01:31 -0400)
An RX_RESET event can be reported either as a global or as a driver event.
We were counting only global events.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sfc/falcon.c

index 9cac344d19d0e550a854530b2e23a9453313f4f5..247629cee5aa383f6fecb4a14625ffa9ae4768c0 100644 (file)
@@ -1129,6 +1129,7 @@ static void falcon_handle_driver_event(struct efx_channel *channel,
        case RX_RECOVERY_EV_DECODE:
                EFX_ERR(efx, "channel %d seen DRIVER RX_RESET event. "
                        "Resetting.\n", channel->channel);
+               atomic_inc(&efx->rx_reset);
                efx_schedule_reset(efx,
                                   EFX_WORKAROUND_6555(efx) ?
                                   RESET_TYPE_RX_RECOVERY :