Re: [dpdk-dev] [PATCH v3] mbuf: support dynamic fields and flags

2019-10-24 Thread Stephen Hemminger
On Thu, 24 Oct 2019 17:44:09 +0200 Thomas Monjalon wrote: > 24/10/2019 17:30, Stephen Hemminger: > > On Thu, 24 Oct 2019 10:13:37 +0200 > > Olivier Matz wrote: > > > > > +/** > > > + * Copy dynamic fields from msrc to mdst. > > > + * > > > + * @param mdst > > > + * The destination mbuf. > >

Re: [dpdk-dev] [PATCH v3] mbuf: support dynamic fields and flags

2019-10-24 Thread Thomas Monjalon
24/10/2019 10:13, Olivier Matz: > Many features require to store data inside the mbuf. As the room in mbuf > structure is limited, it is not possible to have a field for each > feature. Also, changing fields in the mbuf structure can break the API > or ABI. > > This commit addresses these issues,

Re: [dpdk-dev] [PATCH v3] mbuf: support dynamic fields and flags

2019-10-24 Thread Thomas Monjalon
24/10/2019 17:30, Stephen Hemminger: > On Thu, 24 Oct 2019 10:13:37 +0200 > Olivier Matz wrote: > > > +/** > > + * Copy dynamic fields from msrc to mdst. > > + * > > + * @param mdst > > + * The destination mbuf. > > + * @param msrc > > + * The source mbuf. > > + */ > > +static inline void > >

Re: [dpdk-dev] [PATCH v3] mbuf: support dynamic fields and flags

2019-10-24 Thread Stephen Hemminger
On Thu, 24 Oct 2019 10:13:37 +0200 Olivier Matz wrote: > > +/** > + * Copy dynamic fields from msrc to mdst. > + * > + * @param mdst > + * The destination mbuf. > + * @param msrc > + * The source mbuf. > + */ > +static inline void > +rte_mbuf_dynfield_copy(struct rte_mbuf *mdst, const struc

[dpdk-dev] [PATCH v3] mbuf: support dynamic fields and flags

2019-10-24 Thread Olivier Matz
Many features require to store data inside the mbuf. As the room in mbuf structure is limited, it is not possible to have a field for each feature. Also, changing fields in the mbuf structure can break the API or ABI. This commit addresses these issues, by enabling the dynamic registration of fiel