[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y5EoRXaFs3mjrTLE@x130>
Date: Wed, 7 Dec 2022 15:56:53 -0800
From: Saeed Mahameed <saeed@...nel.org>
To: unlisted-recipients:; (no To-header on input)
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, Jacob Keller <jacob.e.keller@...el.com>,
netdev@...r.kernel.org, richardcochran@...il.com, leon@...nel.org,
Gurucharan G <gurucharanx.g@...el.com>
Subject: Re: [PATCH net-next v2 12/15] ice: handle flushing stale Tx
timestamps in ice_ptp_tx_tstamp
On 07 Dec 13:09, Tony Nguyen wrote:
>From: Jacob Keller <jacob.e.keller@...el.com>
>
>In the event of a PTP clock time change due to .adjtime or .settime, the
>ice driver needs to update the cached copy of the PHC time and also discard
>any outstanding Tx timestamps.
>
[...]
>+static void
>+ice_ptp_mark_tx_tracker_stale(struct ice_ptp_tx *tx)
>+{
>+ u8 idx;
>+
>+ spin_lock(&tx->lock);
>+ for_each_set_bit(idx, tx->in_use, tx->len)
>+ set_bit(idx, tx->stale);
nit: bitmap_or()?
Powered by blists - more mailing lists