[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210316101901.gkcdczquxrtwpydh@skbuf>
Date: Tue, 16 Mar 2021 12:19:01 +0200
From: Vladimir Oltean <olteanv@...il.com>
To: Po Liu <po.liu@....com>
Cc: Jakub Kicinski <kuba@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Claudiu Manoil <claudiu.manoil@....com>,
Vinicius Costa Gomes <vinicius.gomes@...el.com>,
Richard Cochran <richardcochran@...il.com>
Subject: Re: [PATCH net-next] net: add a helper to avoid issues with HW TX
timestamping and SO_TXTIME
Hi Po,
On Thu, Mar 11, 2021 at 02:30:12AM +0000, Po Liu wrote:
> Hi
>
> Can it just move
>
> skb->tstamp = ktime_set(0, 0);
>
> into
>
> skb_tstamp_tx(skb, &shhwtstamps);
>
> if it always need to clear for HW tstamp setting.
I don't know if that works under all circumstances. Also, to keep the
driver interface consistent, we would also need to plug that into
skb_complete_tx_timestamp, for the case when the driver is working with
a clone directly.
It just seemed simpler to me to modify the few drivers which use SO_TXTIME.
Powered by blists - more mailing lists