Re: [PATCH] dlci: update last_rx after netif_rx

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Mon Feb 26 2001 - 21:56:13 EST


Arnaldo Carvalho de Melo wrote:
> --- linux-2.4.2/drivers/net/wan/dlci.c Tue Feb 13 19:15:05 2001
> +++ linux-2.4.2.acme/drivers/net/wan/dlci.c Mon Feb 26 23:43:25 2001
> @@ -229,6 +229,7 @@
> skb_pull(skb, header);
> netif_rx(skb);
> dlp->stats.rx_packets++;
> + dev->last_rx = jiffies;

You need to update dlp->stats.rx_bytes too.

-- 
Jeff Garzik       | "You see, in this world there's two kinds of
Building 1024     |  people, my friend: Those with loaded guns
MandrakeSoft      |  and those who dig. You dig."  --Blondie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:13 EST