diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-02-28 13:27:21 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-02-28 13:27:21 +0000 |
commit | 04af8bd108cea6310477dcb8ab6aed3cd2389c3b (patch) | |
tree | d5f11afc51cf7b6da7c9894608cc9b0b16030455 /target/linux/brcm47xx/patches-3.8/765-bgmac-omit-the-fcs.patch | |
parent | 9805096f484ddf7b14527a94d896e4aba6289a63 (diff) | |
download | upstream-04af8bd108cea6310477dcb8ab6aed3cd2389c3b.tar.gz upstream-04af8bd108cea6310477dcb8ab6aed3cd2389c3b.tar.bz2 upstream-04af8bd108cea6310477dcb8ab6aed3cd2389c3b.zip |
brcm47xx: bgmac: omit the fcs
This fixes #13058 and hopefully #12927
SVN-Revision: 35834
Diffstat (limited to 'target/linux/brcm47xx/patches-3.8/765-bgmac-omit-the-fcs.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.8/765-bgmac-omit-the-fcs.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.8/765-bgmac-omit-the-fcs.patch b/target/linux/brcm47xx/patches-3.8/765-bgmac-omit-the-fcs.patch new file mode 100644 index 0000000000..9d8733fef2 --- /dev/null +++ b/target/linux/brcm47xx/patches-3.8/765-bgmac-omit-the-fcs.patch @@ -0,0 +1,19 @@ +--- a/drivers/net/ethernet/broadcom/bgmac.c ++++ b/drivers/net/ethernet/broadcom/bgmac.c +@@ -301,12 +301,16 @@ static int bgmac_dma_rx_read(struct bgma + bgmac_err(bgmac, "Found poisoned packet at slot %d, DMA issue!\n", + ring->start); + } else { ++ /* Omit CRC. */ ++ len -= ETH_FCS_LEN; ++ + new_skb = netdev_alloc_skb_ip_align(bgmac->net_dev, len); + if (new_skb) { + skb_put(new_skb, len); + skb_copy_from_linear_data_offset(skb, BGMAC_RX_FRAME_OFFSET, + new_skb->data, + len); ++ skb_checksum_none_assert(skb); + new_skb->protocol = + eth_type_trans(new_skb, bgmac->net_dev); + netif_receive_skb(new_skb); |