> From: Stephen Hemminger [mailto:step...@networkplumber.org]
> Sent: Friday, 20 September 2024 16.30
> 
> On Fri, 20 Sep 2024 09:14:11 +0200
> Stefan Laesser <stefan.laes...@omicronenergy.com> wrote:
> 
> > +                   *RTE_MBUF_DYNFIELD(mbuf, timestamp_dynfield_offset,
> > +                           rte_mbuf_timestamp_t *) =
> > +                                   (uint64_t)ppd->tp_sec * 1000000000 + 
> > ppd-
> >tp_nsec;
> 
> Maybe the should be rte_timespec_to_timestamp() inline in rte_mbuf?

Yes, when/if timestamp gets standardized to NS after UNIX origo.
And the scope of the time conversion function could be broader than mbufs, so 
it should reside in some time related header in EAL.

Reply via email to