--- a/devices/ccat/netdev-3.4-ethercat.c Fri Apr 04 08:59:37 2014 +0200
+++ b/devices/ccat/netdev-3.4-ethercat.c Mon Apr 07 07:31:50 2014 +0200
@@ -449,7 +449,7 @@
addr_and_length = 8 + (next * sizeof(*frame));
addr_and_length +=
- ((frame[next].length + sizeof(CCAT_HEADER_TAG) + 8) / 8) << 24;
+ ((frame[next].length + CCAT_DMA_FRAME_HEADER_LENGTH) / 8) << 24;
iowrite32(addr_and_length, priv->reg.tx_fifo); /* add to DMA fifo */
atomic64_add(frame[next].length, &priv->tx_bytes); /* update stats */