[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 5 May 2022 07:07:02 -0700
From: Richard Cochran <richardcochran@...il.com>
To: Gerhard Engleder <gerhard@...leder-embedded.com>
Cc: vinicius.gomes@...el.com, yangbo.lu@....com, davem@...emloft.net,
kuba@...nel.org, mlichvar@...hat.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v3 5/6] ptp: Speed up vclock lookup
On Sun, May 01, 2022 at 01:18:35PM +0200, Gerhard Engleder wrote:
> ptp_convert_timestamp() is called in the RX path of network messages.
> The current implementation takes ~5000ns on 1.2GHz A53. This is too much
> for the hot path of packet processing.
>
> Introduce hash table for fast vclock lookup in ptp_convert_timestamp().
> The execution time of ptp_convert_timestamp() is reduced to ~700ns on
> 1.2GHz A53.
50 times faster... nice improvement!
> Signed-off-by: Gerhard Engleder <gerhard@...leder-embedded.com>
Acked-by: Richard Cochran <richardcochran@...il.com>
Powered by blists - more mailing lists