[PATCH] cosa: update last_rx after netif_rx

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Mon Feb 26 2001 - 19:58:31 EST


Hi,

        Please consider applying.

- Arnaldo

--- linux-2.4.2/drivers/net/wan/cosa.c Tue Feb 13 19:15:05 2001
+++ linux-2.4.2.acme/drivers/net/wan/cosa.c Mon Feb 26 23:28:40 2001
@@ -738,14 +738,14 @@
                 chan->stats.rx_frame_errors++;
                 return 0;
         }
- chan->rx_skb->protocol = htons(ETH_P_WAN_PPP);
+ chan->rx_skb->protocol = __constant_htons(ETH_P_WAN_PPP);
         chan->rx_skb->dev = chan->pppdev.dev;
         chan->rx_skb->mac.raw = chan->rx_skb->data;
         chan->stats.rx_packets++;
         chan->stats.rx_bytes += chan->cosa->rxsize;
         netif_rx(chan->rx_skb);
         chan->rx_skb = 0;
- chan->pppdev.dev->trans_start = jiffies;
+ chan->pppdev.dev->last_rx = jiffies;
         return 0;
 }
 
-
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