From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivano Cerrato <8002onavi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: kni creation Date: Mon, 09 Jun 2014 14:54:22 +0200 Message-ID: <5395AE7E.3080907@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: "dev-VfR2kkLFssw@public.gmane.org" Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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