• Jacob Keller's avatar
    ice: report the PTP clock index in ethtool .get_ts_info · 67569a7f
    Jacob Keller authored
    Now that the driver registers a PTP clock device that represents the
    clock hardware, it is important that the clock index is reported via the
    ethtool .get_ts_info callback.
    
    The underlying hardware resource is shared between multiple PF
    functions. Only one function owns the hardware resources associated with
    a timer, but multiple functions may be associated with it for the
    purposes of timestamping.
    
    To support this, the owning PF will store the clock index into the
    driver shared parameters buffer in firmware. Other PFs will look up the
    clock index by reading the driver shared parameter on demand when
    requested via the .get_ts_info ethtool function.
    
    In this way, all functions which are tied to the same timer are able to
    report the clock index. Userspace software such as ptp4l performs
    a look up on the netdev to determine the associated clock, and all
    commands to control or configure the clock will be handled through the
    controlling PF.
    Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
    Tested-by: default avatarTony Brelinski <tonyx.brelinski@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    67569a7f
ice_ptp.c 14.3 KB