[PATCH v3] net/af_packet: add timestamp offloading support
Morten Brørup
mb at smartsharesystems.com
Fri Sep 20 18:09:48 CEST 2024
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Friday, 20 September 2024 16.30
>
> On Fri, 20 Sep 2024 09:14:11 +0200
> Stefan Laesser <stefan.laesser at 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.
More information about the dev
mailing list