> From: Stephen Hemminger [mailto:[email protected]]
> Sent: Wednesday, 8 November 2023 19.36
] pcapng: modify timestamp calculation
> 
> The computation of timestamp is best done in the part of
> pcapng library that is in secondary process.
> The secondary process is already doing a bunch of system
> calls which makes it not performance sensitive.
> 
> Simplify the computation of nanoseconds from TSC to a two
> step process which avoids numeric overflow issues. The previous
> code was not thread safe as well.
> 
> Fixes: c882eb544842 ("pcapng: fix timestamp wrapping in output files")
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---

This changes the rte_pcapng lib API, but it is marked experimental, so should 
be allowed.

Acked-by: Morten Brørup <[email protected]>

Reply via email to