sfc: improve PTP error reporting
Log a message if PTP probing fails; if we then, unexpectedly, get PTP events, only log a message for the first one on each device. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
aae5a31663
commit
acaef3c156
@@ -1662,9 +1662,11 @@ void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev)
|
||||
int code = EFX_QWORD_FIELD(*ev, MCDI_EVENT_CODE);
|
||||
|
||||
if (!ptp) {
|
||||
if (net_ratelimit())
|
||||
if (!efx->ptp_warned) {
|
||||
netif_warn(efx, drv, efx->net_dev,
|
||||
"Received PTP event but PTP not set up\n");
|
||||
efx->ptp_warned = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user