From 85e4bcd6f15c63763b9ca5b9f866b8ab7aacbc4e Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 17 May 2001 22:46:37 +0000 Subject: Strip ethernet trailer from received packets. --- drivers/net/ioc3-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/net/ioc3-eth.c') diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c index c0cda0ce3..f3446f69f 100644 --- a/drivers/net/ioc3-eth.c +++ b/drivers/net/ioc3-eth.c @@ -413,7 +413,7 @@ ioc3_rx(struct net_device *dev, struct ioc3_private *ip, struct ioc3 *ioc3) while (w0 & ERXBUF_V) { err = rxb->err; /* It's valid ... */ if (err & ERXBUF_GOODPKT) { - len = (w0 >> ERXBUF_BYTECNT_SHIFT) & 0x7ff; + len = ((w0 >> ERXBUF_BYTECNT_SHIFT) & 0x7ff) - 4; skb_trim(skb, len); skb->protocol = eth_type_trans(skb, dev); -- cgit v1.2.3