[dpdk-dev] [PATCH v5 1/5] mbuf: introduce routine to get private mbuf pool flags
Stephen Hemminger
stephen at networkplumber.org
Tue Jan 21 17:21:56 CET 2020
On Tue, 21 Jan 2020 15:01:57 +0100
Olivier Matz <olivier.matz at 6wind.com> wrote:
> > I've checked the rte_mempool_get_priv() usage - in all header files there
> > are the type casts. The "rte_mbuf.h" contains the rte_pktmbuf_priv_size() and
> > rte_pktmbuf_data_room_size(), both provide the cast. What is the reason?
> > C++ compatibility? Should we remove the cast in rte_pktmbuf_priv_flags()?
>
> Removing the cast will certainly break C++ code using this header.
> There is a similar case in commit a2ff2827dc84 ("mbuf: fix C++ build on
> void pointer cast")
>
> In my opinion it can stay as it is now.
Agreed. Thanks for trying.
More information about the dev
mailing list