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)
commit28a19fe60f4f31cbd349f8473f0483aa7500acf5
tree4cfe6f2662530b2b5e3df89a1383760aa0e78f5a
parentd97a079a79a7dcbc2470572b41cd1f07a16d8b7f
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