[dpdk-dev] rte_eal_init() alternative?
Montorsi, Francesco
fmontorsi at empirix.com
Wed Sep 2 14:49:40 CEST 2015
Hi all,
Currently it seems that the only way to initialize EAL is using rte_eal_init() function, correct?
I have the problem that rte_eal_init() will call rte_panic() whenever something fails to initialize or in other cases it will call exit().
In my application, I would rather like to attempt DPDK initialization. If it fails I don't want to exit.
Unfortunately I cannot even copy&paste the rte_eal_init() code into my application (removing rte_panic and exit calls) since it uses a lot of DPDK internal private functions.
I think that my requirements (avoid abort/exit calls when init fails) is a basic requirement... would you accept a patch that adds an alternative rte_eal_init() function that just returns an error code upon failure, instead of immediately exiting?
Thanks for your hard work!
Francesco Montorsi
More information about the dev
mailing list