From 5ab4fe9c0e6e66db95c63aaf2e09ae6721eff1ce Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 7 May 2014 18:36:58 +0000 Subject: [PATCH] lantiq: strip FCS from received ethernet frames on XRX200 Signed-off-by: Felix Fietkau SVN-Revision: 40719 --- .../patches-3.10/0208-lantiq-xrx200-strip-fcs.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 target/linux/lantiq/patches-3.10/0208-lantiq-xrx200-strip-fcs.patch diff --git a/target/linux/lantiq/patches-3.10/0208-lantiq-xrx200-strip-fcs.patch b/target/linux/lantiq/patches-3.10/0208-lantiq-xrx200-strip-fcs.patch new file mode 100644 index 00000000000..ceaca4dc3fd --- /dev/null +++ b/target/linux/lantiq/patches-3.10/0208-lantiq-xrx200-strip-fcs.patch @@ -0,0 +1,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); ++ int len = (desc->ctl & LTQ_DMA_SIZE_MASK) - ETH_FCS_LEN; + unsigned long flags; + + spin_lock_irqsave(&priv->hw->lock, flags); -- 2.30.2