Merge pull request #103 from tigerjibo/master

ipfw: should init dpdk before all malloc
This commit is contained in:
logwang 2017-11-21 14:57:35 +08:00 committed by GitHub
commit c598cee34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ main(int ac, char *av[])
* If the last argument is an absolute pathname, interpret it
* as a file to be preprocessed.
*/
ff_ipc_init();
if (ac > 1 && av[ac - 1][0] == '/') {
if (access(av[ac - 1], R_OK) == 0)
ipfw_readfile(ac, av);