Re: [PATCH v3] net/af_packet: add timestamp offloading support

2024-09-21 Thread Ferruh Yigit
On 9/20/2024 8:14 AM, Stefan Laesser wrote: > Add the packet timestamp from TPACKET_V2 to the mbuf > dynamic rx timestamp register if offload RTE_ETH_RX_OFFLOAD_TIMESTAMP > is enabled. > > TPACKET_V2 provides the timestamp with nanosecond resolution > and UNIX origo, i.e. time since 1-JAN-1970 UTC

RE: [PATCH v3] net/af_packet: add timestamp offloading support

2024-09-20 Thread Morten Brørup
> 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 wrote: > > > + *RTE_MBUF_DYNFIELD(mbuf, timestamp_dynfield_offset, > > + rte_mbuf_timestamp_t

Re: [PATCH v3] net/af_packet: add timestamp offloading support

2024-09-20 Thread Stephen Hemminger
On Fri, 20 Sep 2024 09:14:11 +0200 Stefan Laesser wrote: > + *RTE_MBUF_DYNFIELD(mbuf, timestamp_dynfield_offset, > + rte_mbuf_timestamp_t *) = > + (uint64_t)ppd->tp_sec * 10 + > ppd->tp_nsec; Maybe the s

[PATCH v3] net/af_packet: add timestamp offloading support

2024-09-20 Thread Stefan Laesser
Add the packet timestamp from TPACKET_V2 to the mbuf dynamic rx timestamp register if offload RTE_ETH_RX_OFFLOAD_TIMESTAMP is enabled. TPACKET_V2 provides the timestamp with nanosecond resolution and UNIX origo, i.e. time since 1-JAN-1970 UTC. Signed-off-by: Stefan Laesser Acked-by: Morten Brøru