sfc: Rate-limit log message for PTP packets without a matching timestamp event
In case of a flood of PTP packets, the timestamp peripheral and MC
firmware on the SFN[56]322F boards may not be able to provide
timestamp events for all packets. Don't complain too much about this.
Fixes: 7c236c43b8
('sfc: Add support for IEEE-1588 PTP')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
parent
f32116003c
commit
35f9a7a380
|
@ -717,6 +717,7 @@ static bool efx_ptp_process_events(struct efx_nic *efx, struct sk_buff_head *q)
|
||||||
__skb_queue_tail(q, skb);
|
__skb_queue_tail(q, skb);
|
||||||
} else if (time_after(jiffies, match->expiry)) {
|
} else if (time_after(jiffies, match->expiry)) {
|
||||||
match->state = PTP_PACKET_STATE_TIMED_OUT;
|
match->state = PTP_PACKET_STATE_TIMED_OUT;
|
||||||
|
if (net_ratelimit())
|
||||||
netif_warn(efx, rx_err, efx->net_dev,
|
netif_warn(efx, rx_err, efx->net_dev,
|
||||||
"PTP packet - no timestamp seen\n");
|
"PTP packet - no timestamp seen\n");
|
||||||
__skb_queue_tail(q, skb);
|
__skb_queue_tail(q, skb);
|
||||||
|
|
Loading…
Reference in New Issue