[PATCH] cosa: update last_rx after netif_rx

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Mon, 26 Feb 2001 21:58:31 -0300


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/