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

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