summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/patches-3.14/0100-lantiq-xrx200-strip-fcs.patch
blob: 6b5285f2c0c12fb00faa20ab4ca8bc5f89f7768d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/drivers/net/ethernet/lantiq_xrx200.c
+++ b/drivers/net/ethernet/lantiq_xrx200.c
@@ -933,7 +933,7 @@ static void xrx200_hw_receive(struct xrx
 	struct xrx200_priv *priv = netdev_priv(dev);
 	struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
 	struct sk_buff *skb = ch->skb[ch->dma.desc];
-	int len = (desc->ctl & LTQ_DMA_SIZE_MASK) - ETH_FCS_LEN;
+	int len = (desc->ctl & LTQ_DMA_SIZE_MASK);
 	unsigned long flags;
 
 	spin_lock_irqsave(&priv->hw->lock, flags);