> On Sat, 5 Feb 2022 03:43:33 +0530 > Akhil Goyal <gak...@marvell.com> wrote: > > > +/** > > + * @internal > > + * Register mbuf dynamic field and flag for IP reassembly incomplete case. > > + */ > > +__rte_internal > > +int > > +rte_eth_ip_reass_dynfield_register(int *field_offset, int *flag); > > Maybe use RTE_INIT() constructor for this?
The same application can be used for non-reassembly case as well. RTE_INIT would mean, dynfield would be registered always even if it is enabled or not. The current implementation would register it only when the Reassembly option is enabled.