dp83640: increase receive time stamp buffer size
authorRichard Cochran <richardcochran@gmail.com>
Sat, 6 Aug 2011 21:03:04 +0000 (21:03 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:42 +0000 (18:31 -0700)
commitfa54ab17fd26a469755f36f81fd4dad9e33f4f66
tree40b61d8e3bc300d7048fb5669ed8c733042faf48
parent716fa319182000c26521cb2bd4ea034256230f5d
dp83640: increase receive time stamp buffer size

commit 8028837d71ba9904b17281b40f94b93e947fbe38 upstream.

The dp83640 buffers receive time stamps from special PHY status frames,
matching them to received PTP packets in a work queue. Because the timeout
for orphaned time stamps is so long and the buffer is so small, the driver
can drop time stamps under moderate PTP traffic.

This commit fixes the issue by decreasing the timeout to (at least) one
timer tick and increasing the buffer size.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/phy/dp83640.c