DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] kni creation
@ 2014-06-09 12:54 Ivano Cerrato
  0 siblings, 0 replies; only message in thread
From: Ivano Cerrato @ 2014-06-09 12:54 UTC (permalink / raw)
  To: 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-09 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 12:54 [dpdk-dev] kni creation Ivano Cerrato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).