From: Florian Fainelli Date: Thu, 27 Mar 2014 04:18:39 +0000 (-0700) Subject: net: bcmgenet: set RBUF_SKIP_FCS based on UniMAC CRC forwarding X-Git-Tag: v3.15-rc1~113^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebe5e3c64241bbdc256e9828392fa452bc2bfd7e;p=pandora-kernel.git net: bcmgenet: set RBUF_SKIP_FCS based on UniMAC CRC forwarding When the UniMAC block is configured to forward the CRC as part of the Ethernet frame (priv->crc_fwd_en, set by default), enabling the hardware RX checksum block unveiled that the dma_rxchk_bit was never set in the per-packet status bits (dma_flag in bcmgenet_desc_rx). This would make the chksum_ok variable to be never set to 1, and the networking stack would have to compute the packet checksums, which takes a substantial amount of time. In order for the RXCHK block to properly compute the packet checksum in hardware, we also need to set the RBUF_SKIP_FCS bit accordingly. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed