lantiq: strip FCS from received ethernet frames on XRX200
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40719
This commit is contained in:
parent
427536bc53
commit
5ab4fe9c0e
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
Loading…
Reference in a new issue