]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: davinci_cpdma: remove CRC bytes from skb added by CPDMA
authorMugunthan V N <mugunthanvnm@ti.com>
Wed, 29 May 2013 20:22:01 +0000 (20:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jun 2013 00:25:43 +0000 (17:25 -0700)
commit85b6ea874924fb20d7d307ffb11adcb2fecb454a
tree4cfe6f2662530b2b5e3df89a1383760aa0e78f5a
parentc6fead80515894a30bb3744a420c4a433ff8af4b
drivers: net: davinci_cpdma: remove CRC bytes from skb added by CPDMA

Additional 4 bytes found in the skb is the CRC calculated by the
CPDMA hardware, check the CRC bit in CPDMA status field of
Descriptor and remove the CRC length from the skb. This extra
4 byte can be seen when capturing packets using tcpdump.
This has been tested in TI816x platform.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c