Re: [dpdk-dev] [PATCH v3 02/16] mbuf: add Rx timestamp flag and helpers

2020-11-03 Thread Thomas Monjalon
03/11/2020 10:33, Olivier Matz: > On Tue, Nov 03, 2020 at 01:13:53AM +0100, Thomas Monjalon wrote: > > +static int > > +rte_mbuf_dyn_timestamp_register(int *field_offset, uint64_t *flag, > > + const char *direction, const char *flag_name) > > +{ > > + static const struct rte_mbuf_dynfie

Re: [dpdk-dev] [PATCH v3 02/16] mbuf: add Rx timestamp flag and helpers

2020-11-03 Thread Olivier Matz
Hi Thomas, On Tue, Nov 03, 2020 at 01:13:53AM +0100, Thomas Monjalon wrote: > There is already a dynamic field for timestamp, > used only for Tx scheduling with the dedicated Tx offload flag. > The same field can be used for Rx timestamp filled by drivers. > > A new dynamic flag is defined for Rx

[dpdk-dev] [PATCH v3 02/16] mbuf: add Rx timestamp flag and helpers

2020-11-02 Thread Thomas Monjalon
There is already a dynamic field for timestamp, used only for Tx scheduling with the dedicated Tx offload flag. The same field can be used for Rx timestamp filled by drivers. A new dynamic flag is defined for Rx usage. A new function wraps the registration of both field and Rx flag. The type rte_m