Thread (3 messages) flat view 3 messages, 3 authors, 2021-11-24

Re: [PATCH net-next v2] net: stmmac: Caclucate CDC error only once

From: Matteo Croce <hidden>
Date: 2021-11-22 12:06:01
Also in: linux-arm-kernel

On Mon, Nov 22, 2021 at 12:19 PM Kurt Kanzenbach [off-list ref] wrote:
The clock domain crossing error (CDC) is calculated at every fetch of Tx or Rx
timestamps. It includes a division. Especially on arm32 based systems it is
expensive. It also requires two conditionals in the hotpath.

Add a compensation value cache to struct plat_stmmacenet_data and subtract it
unconditionally in the RX/TX functions which spares the conditionals.

The value is initialized to 0 and if supported calculated in the PTP
initialization code.

Suggested-by: Thomas Gleixner <redacted>
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
---
Nit: "Caclucate" in the subject

-- 
per aspera ad upstream
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help