• Richard Cochran's avatar
    dp83640: drop PHY status frames in the driver. · ae6e86b7
    Richard Cochran authored
    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: default avatarRichard Cochran <richard.cochran@omicron.at>
    Signed-off-by: default avatarDavid S. Miller <davem@conan.davemloft.net>
    ae6e86b7
dp83640.c 26.8 KB