[PATCH v3 3/5] pcapng: modify timestamp calculation
Morten Brørup
mb at smartsharesystems.com
Thu Nov 9 08:57:15 CET 2023
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> 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 <stephen at networkplumber.org>
> ---
This changes the rte_pcapng lib API, but it is marked experimental, so should be allowed.
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list