> From: Stephen Hemminger [mailto:step...@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 <step...@networkplumber.org> > ---
This changes the rte_pcapng lib API, but it is marked experimental, so should be allowed. Acked-by: Morten Brørup <m...@smartsharesystems.com>