• Yangbo Lu's avatar
    net: sock: extend SO_TIMESTAMPING for PHC binding · d463126e
    Yangbo Lu authored
    Since PTP virtual clock support is added, there can be
    several PTP virtual clocks based on one PTP physical
    clock for timestamping.
    
    This patch is to extend SO_TIMESTAMPING API to support
    PHC (PTP Hardware Clock) binding by adding a new flag
    SOF_TIMESTAMPING_BIND_PHC. When PTP virtual clocks are
    in use, user space can configure to bind one for
    timestamping, but PTP physical clock is not supported
    and not needed to bind.
    
    This patch is preparation for timestamp conversion from
    raw timestamp to a specific PTP virtual clock time in
    core net.
    Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d463126e
common.c 22.2 KB