diff options
| author | Kurt Kanzenbach <[email protected]> | 2021-11-22 11:19:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-11-24 04:11:05 +0000 |
| commit | c6d5f1933085f9a92ed5c256a859ab31c7a35f88 (patch) | |
| tree | 652bed7110baf5cc643b18ddd9194180453423bd /net/unix/af_unix.c | |
| parent | net: remove .ndo_change_proto_down (diff) | |
| download | kernel-c6d5f1933085f9a92ed5c256a859ab31c7a35f88.tar.gz kernel-c6d5f1933085f9a92ed5c256a859ab31c7a35f88.zip | |
net: stmmac: Calculate CDC error only once
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 <[email protected]>
Signed-off-by: Kurt Kanzenbach <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
