diff options
| author | Vadim Fedorenko <[email protected]> | 2024-11-03 13:51:07 -0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-05 17:33:26 -0800 |
| commit | bb2ef9b92bdf7e2e3b5df9747e6f7dcf51587450 (patch) | |
| tree | 26e0ac48e371ca1e434308d98a959912a6235332 /tools/perf/scripts | |
| parent | f72aa1b276281b4e4f75261af8425bc99d903f3e (diff) | |
bnxt_en: cache only 24 bits of hw counter
This hardware can provide only 48 bits of cycle counter. We can leave
only 24 bits in the cache to extend RX timestamps from 32 bits to 48
bits. Lower 8 bits of the cached value will be used to check for
roll-over while extending to full 48 bits.
This change makes cache writes atomic even on 32 bit platforms and we
can simply use READ_ONCE()/WRITE_ONCE() pair and remove spinlock. The
configuration structure will be also reduced by 4 bytes.
Reviewed-by: Michael Chan <[email protected]>
Signed-off-by: Vadim Fedorenko <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions