[dpdk-dev] [RFC 10/35] eal: introduce RTE_DECONST macro

Stephen Hemminger stephen at networkplumber.org
Fri Mar 11 22:47:33 CET 2016


On Thu, 10 Mar 2016 09:11:52 +0100
Olivier MATZ <olivier.matz at 6wind.com> wrote:

> 
> > I would rather have the mempool_audit code take a non-const argument.
> > The macro method sets a bad precedent and will encourage more bad code.
> > Plus code checkers are likely to flag any such usage as suspect.
> 
> Doing that would imply dropping the const qualifier in several
> functions:
> 
> - rte_mempool_dump()
> - rte_mempool_audit()
> - mempool_audit_cookies()
> - mempool_audit_cache()

Sure no problem.


More information about the dev mailing list