ice/ptp: fix the PTP worker retrying indefinitely if the link went down
authorDaniel Vacek <neelx@redhat.com>
Thu, 19 Jan 2023 20:23:16 +0000 (21:23 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 14 Feb 2023 21:08:02 +0000 (13:08 -0800)
commitfcc2cef37fed567564f5b94a9c0aba733bb159ab
tree4bf0d18d53852d448d0e9b87f91e1df54a0f44d7
parent634d841dbfa7c530e54db936db05b8bc3a44f429
ice/ptp: fix the PTP worker retrying indefinitely if the link went down

When the link goes down the ice_ptp_tx_tstamp() may loop re-trying to
process the packets till the 2 seconds timeout finally drops them.
In such a case it makes sense to just drop them right away.

Signed-off-by: Daniel Vacek <neelx@redhat.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp.c