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