[dpdk-dev] [PATCH v2 0/6] librte_cfgfile enhancements

Bruce Richardson bruce.richardson at intel.com
Tue Mar 28 11:18:28 CEST 2017


On Tue, Mar 28, 2017 at 10:29:44AM +0200, Thomas Monjalon wrote:
> 2017-03-09 08:10, Allain Legacy:
> > This patchset includes some minor enhancements that we have developped for
> > our DPDK application.  We would like to contribute them upstream to help
> > ease adoption of the DPDK by anyone looking for this type of
> > functionality.  The commit logs on each patch should be self-sufficient in
> > explaining the intent and purpose.
> 
> This series is small enough to be merged.
> However, in the long term, we should not have this kind of library in DPDK.
> 
> librte_cfgfile is used by the examples ip_pipeline and qos_sched.
> I think the purpose of an example is to show some simple code demonstrating
> a feature.
> Examples using a configuration file are closer to a complete application.
> 
> Anyway, why not use an external library like this one?
> 	https://github.com/vstakhov/libucl

Because as a general rule, anything adding in external dependencies needs
to be disabled by default. This leads to the catch-22 situation I
flagged before, and had no follow-up on. There is no way right now for
someone to put in extra functionality like this into DPDK and  have it
default enabled. If you try putting it into DPDK directly, it will be
rejected as duplicating other libs, but if you re-use the libs, it will
be disabled by default as adding in an extra dependency.

/Bruce


More information about the dev mailing list