]> 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)
commit7466bf01c112f833f83d95c0e46584949e161e79
tree4cfe6f2662530b2b5e3df89a1383760aa0e78f5a
parent467e8f6a52f8b10307004b947c42529ab1f7eb39
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