On Wed, May 8, 2019 at 1:16 PM Thomas Monjalon <tho...@monjalon.net> wrote:
> I did a status of rte_panic/rte_exit calls in libs. > > There are a lot of cleanups to do in EAL. > We may apply the same kind of solution for Linux, FreeBSD and Windows. > > Thanks for the list. Only checked at the mbuf part for now. librte_mbuf: > void rte_mbuf_sanity_check > rte_panic > This function does panic yes, but we have a non-panicking equivalent version of this function: rte_mbuf_check(). When RTE_LIBRTE_MBUF_DEBUG is set, a lot of internals in rte_mbuf call _rte_mbuf_sanity_check which calls rte_mbuf_sanity_check. -- David Marchand