整體的流程:
1.rte_eal_init():環境初始化
2.parse_args():參數解析
3.rte_pktmbuf_pool_create():Create the mbuf pool
4.init_kni():
5.循環調用init_port()和kni_alloc():
6.rte_eal_mp_remote_launch():註冊主循環
7.RTE_LCORE_FOREACH_SLAVE(i) {
if (rte_eal_wait_lcore(i) < 0)
return -1;
} 等待處理完成
8.kni_free_kni(),rte_kni_close(),rte_free();