linux/drivers/net/ethernet/freescale
Manfred Rudigier 9c4886e5e6 gianfar: Fix invalid TX frames returned on error queue when time stamping
When TX time stamping for PTP messages is enabled on a socket, a time
stamp is returned on the socket error queue to the user space application
after the frame was transmitted. The transmitted frame is also returned on
the error queue so that an application knows to which frame the time stamp
belongs.

In the current implementation the TxFCB is immediately followed by the
frame. Since the eTSEC inserts the TX time stamp 8 bytes after the TxFCB,
parts of the frame have been overwritten and an invalid frame was returned
on the socket error queue.

This patch fixes the described problem by adding additional 16 padding
bytes between the TxFCB and the frame for all messages sent from a time
stamping enabled socket (other sockets are not affected).

Signed-off-by: Manfred Rudigier <manfred.rudigier@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-12 15:26:01 -08:00
..
fs_enet net/ethernet: convert drivers/net/ethernet/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
fec_mpc52xx_phy.c
fec_mpc52xx.c
fec_mpc52xx.h
fec.c fec: use an unique MDIO bus name. 2012-01-10 16:35:00 -08:00
fec.h
fsl_pq_mdio.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2011-12-16 02:11:14 -05:00
fsl_pq_mdio.h
gianfar_ethtool.c gianfar: Reject out-of-range RX NFC locations 2012-01-04 14:09:10 -05:00
gianfar_ptp.c net/ethernet: convert drivers/net/ethernet/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
gianfar_sysfs.c
gianfar.c gianfar: Fix invalid TX frames returned on error queue when time stamping 2012-01-12 15:26:01 -08:00
gianfar.h gianfar: Fix invalid TX frames returned on error queue when time stamping 2012-01-12 15:26:01 -08:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-01-04 21:35:43 -05:00
Makefile
ucc_geth_ethtool.c
ucc_geth.c ucc_geth: Convert ENET_NUM_OCTETS_PER_ADDRESS uses to ETH_ALEN 2011-11-16 20:23:18 -05:00
ucc_geth.h ucc_geth: Convert ENET_NUM_OCTETS_PER_ADDRESS uses to ETH_ALEN 2011-11-16 20:23:18 -05:00