[PATCH] sealevel: update last_rx after netif_rx

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Mon Feb 26 2001 - 21:44:10 EST


Hi,

        Please consider applying.

- Arnaldo

--- linux-2.4.2/drivers/net/wan/sealevel.c Sun Aug 13 18:57:35 2000
+++ linux-2.4.2.acme/drivers/net/wan/sealevel.c Tue Feb 27 01:07:31 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;
 }
  
 /*
-
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