DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ivano Cerrato <8002onavi@gmail.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] kni creation
Date: Mon, 09 Jun 2014 14:54:22 +0200	[thread overview]
Message-ID: <5395AE7E.3080907@gmail.com> (raw)

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

                 reply	other threads:[~2014-06-09 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5395AE7E.3080907@gmail.com \
    --to=8002onavi@gmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).