2001-02-27 02:55:28

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: [PATCH] hostess_sv11: update last_rx after netif_rx

Hi,

Please consider applying.

- Arnaldo

--- linux-2.4.2/drivers/net/wan/hostess_sv11.c Sun Aug 13 18:57:35 2000
+++ linux-2.4.2.acme/drivers/net/wan/hostess_sv11.c Mon Feb 26 23:48:32 2001
@@ -59,7 +59,7 @@
{
/* Drop the CRC - its not a good idea to try and negotiate it ;) */
skb_trim(skb, skb->len-2);
- skb->protocol=htons(ETH_P_WAN_PPP);
+ skb->protocol=__constant_htons(ETH_P_WAN_PPP);
skb->mac.raw=skb->data;
skb->dev=c->netdevice;
/*
@@ -67,6 +67,7 @@
* it right now.
*/
netif_rx(skb);
+ c->netdevice.last_rx = jiffies;
}

/*