]> git.baikalelectronics.ru Git - kernel.git/commit
dp83640: drop PHY status frames in the driver.
authorRichard Cochran <richardcochran@gmail.com>
Tue, 14 Jun 2011 23:55:20 +0000 (23:55 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Fri, 17 Jun 2011 03:48:12 +0000 (23:48 -0400)
commit103c4f527e1b84b8ccafb00e44275dfcdbce6840
tree6de775cb23016792e18428f0266b0e5b662f02a3
parent1bfcc3ba7edb83fc44e9c0409e675c9936a83a50
dp83640: drop PHY status frames in the driver.

The dp83640 PHY provides time stamp and other information via special
PHY status frames. Previously, the driver decoded the frames and then
let the network stack drop them. This works fine when the PTP messages
come over UDP.

However, when receiving PTP messages via L2 packets, this creates a
problem. The status frames use the official PTP destination MAC address,
and so they are delivered to user space along with the "real" frames,
causing confusion for applications.

This commit fixes the issue by simply dropping the PHY status frames
in the driver.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/phy/dp83640.c