dpdk kni例子程序分析

整體的流程:

    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();

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章