n ; Claudiu Manoil
> ; Jakub Kicinski ; Vladimir
> Oltean ; Russell King
> Subject: [net-next] enetc: fix locking for one-step timestamping packet
> transfer
>
> The previous patch to support PTP Sync packet one-step timestamping
> described one-step timestamping p
> -Original Message-
> From: Jakub Kicinski
> Sent: 2021年4月15日 0:36
> To: Y.b. Lu
> Cc: netdev@vger.kernel.org; David S . Miller ; Richard
> Cochran ; Claudiu Manoil
> ; Vladimir Oltean ;
> Russell King
> Subject: Re: [net-next] enetc: fix locking for o
On Wed, 14 Apr 2021 06:18:57 + Y.b. Lu wrote:
> > On Tue, 13 Apr 2021 11:48:17 +0800 Yangbo Lu wrote:
> > > + /* Queue one-step Sync packet if already locked */
> > > + if (skb->cb[0] & ENETC_F_TX_ONESTEP_SYNC_TSTAMP) {
> > > + if
> > (test_and_set_bit_lock(ENETC_TX_ONESTEP_TSTAMP_I
Hi Jakub,
> -Original Message-
> From: Jakub Kicinski
> Sent: 2021年4月14日 1:11
> To: Y.b. Lu
> Cc: netdev@vger.kernel.org; David S . Miller ; Richard
> Cochran ; Claudiu Manoil
> ; Vladimir Oltean ;
> Russell King
> Subject: Re: [net-next] enetc: fix lockin
On Tue, 13 Apr 2021 11:48:17 +0800 Yangbo Lu wrote:
> + /* Queue one-step Sync packet if already locked */
> + if (skb->cb[0] & ENETC_F_TX_ONESTEP_SYNC_TSTAMP) {
> + if (test_and_set_bit_lock(ENETC_TX_ONESTEP_TSTAMP_IN_PROGRESS,
> + &priv->f
>-Original Message-
>From: Yangbo Lu
>Sent: Tuesday, April 13, 2021 6:48 AM
[...]
>Subject: [net-next] enetc: fix locking for one-step timestamping packet
>transfer
>
>The previous patch to support PTP Sync packet one-step timestamping
>described one-step time
The previous patch to support PTP Sync packet one-step timestamping
described one-step timestamping packet handling logic as below in
commit message:
- Trasmit packet immediately if no other one in transfer, or queue to
skb queue if there is already one in transfer.
The test_and_set_bit_lock()