• Jacob Keller's avatar
    ice: handle discarding old Tx requests in ice_ptp_tx_tstamp · 0dd92862
    Jacob Keller authored
    Currently the driver uses the PTP kthread to process handling and
    discarding of stale Tx timestamp requests. The function
    ice_ptp_tx_tstamp_cleanup is used for this.
    
    A separate thread creates complications for the driver as we now have both
    the main Tx timestamp processing IRQ checking timestamps as well as the
    kthread.
    
    Rather than using the kthread to handle this, simply check for stale
    timestamps within the ice_ptp_tx_tstamp function. This function must
    already process the timestamps anyways.
    
    If a Tx timestamp has been waiting for 2 seconds we simply clear the bit
    and discard the SKB. This avoids the complication of having separate
    threads polling, reducing overall CPU work.
    Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
    Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    0dd92862
ice_ptp.c 72.4 KB