[dpdk-dev] kni creation

Ivano Cerrato 8002onavi at gmail.com
Mon Jun 9 14:54:22 CEST 2014


Hello,
the function rte_kni_alloc, which creates a kni interface, requires 
"const struct rte_kni_conf * conf" as second parameter.
This struct contains, among the others, the elements "add" and "id".
In the example of kni provided with dpdk, they are set to the pci 
address and id of a physical port.

I tried do comment these assignments in the example code, and everything 
seems to work without problems.
Hence, I don't understand what is the purpose of these two parameters.
Someone could explain it to me?

Regards,

     Ivano


More information about the dev mailing list