aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-07 18:36:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-07 18:36:58 +0000
commitcf4f53a170b3ffd6cd30f83733e0bc1142cce0da (patch)
tree76bf55500aee0d4c16efe8ce58ad924cb7b3343d /target/linux
parent652e8521147951bf7256e5e74db8ec5f835d415a (diff)
downloadmaster-187ad058-cf4f53a170b3ffd6cd30f83733e0bc1142cce0da.tar.gz
master-187ad058-cf4f53a170b3ffd6cd30f83733e0bc1142cce0da.tar.bz2
master-187ad058-cf4f53a170b3ffd6cd30f83733e0bc1142cce0da.zip
lantiq: strip FCS from received ethernet frames on XRX200
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40719 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/lantiq/patches-3.10/0208-lantiq-xrx200-strip-fcs.patch11
1 files changed, 11 insertions, 0 deletions
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 0000000000..ceaca4dc3f
--- /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);