DPDK usage discussions
 help / color / mirror / Atom feed
From: Michael Umansky <mishka99@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] how to select correct queue/action that match VF device
Date: Tue, 31 May 2016 13:31:58 -0700	[thread overview]
Message-ID: <CAOPCCy+7dothtQ3hVSJB+=2yN=fwSOd30RGP1KRF4TfZGBVfrQ@mail.gmail.com> (raw)

Any help is greatly appreciated.

I'm trying to use DPDK (16.04) over a VF device (ixgbe NIC, latest kernel
driver too).

create the VF device:

# echo 1 > /sys/class/net/enp7s0f0/device/sriov_numvfs

bind the VF device (07:10.0) in DPDK to vfio-pci

turn on the flow director (on the parent PF device)

# ethtool -K enp7s0f0 ntuple on

now want to redirect specific traffic to queue that belongs to VF device
created above

# ethtool -U enp7s0f0 flow-type tcp4 dst-port 5555 action Q

How do I determine the correct value for Q in above command?

What's the relationship between VF generated device number (0, 1, etc) and
NIC's PF's queue numbers assigned to that VF device?

Are there DPDK API calls to determine and/or select the above
programmatically?

thanks
Michael

                 reply	other threads:[~2016-05-31 20:31 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='CAOPCCy+7dothtQ3hVSJB+=2yN=fwSOd30RGP1KRF4TfZGBVfrQ@mail.gmail.com' \
    --to=mishka99@gmail.com \
    --cc=users@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).