DPDK usage discussions
 help / color / mirror / Atom feed
From: Eli Britstein <eli.britstein@toganetworks.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] SRIOV with DPDK-PF: PMD: eth_ixgbevf_dev_init(): VF Initialization Failure
Date: Thu, 10 Nov 2016 14:52:13 +0000	[thread overview]
Message-ID: <VI1PR0201MB23193CCCE2BA7392C3F0606483B80@VI1PR0201MB2319.eurprd02.prod.outlook.com> (raw)

Hi all,



I want to use both PF and VF bound to igb_uio.

However, when doing so, VF init fails:



EAL: PCI device 0000:04:10.1 on NUMA socket 0

EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd

PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -100

EAL: Error - exiting with code: 1

  Cause: Requested device 0000:04:10.1 cannot be used



The sequence I use it this:



Initial state:

- 04:00.1 is bound to Linux driver (ixgbe)

- no VFs configured



Step 1: configure a VF

echo 1 > /sys/bus/pci/devices/0000:04:00.1/sriov_numvfs



Step 2: set VF's MAC address

ip link set dev enp4s0f1 vf 0 mac 00:bb:dd:04:00:00



Step 3: bind the VF to igb_uio



Step 4: execute L2FWD

./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w 0000:04:00.1 -- -T 0 -p 1 Works as expected



Step 5: bind the PF to igb_uio



Step 6: execute L2FWD again

./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w 0000:04:00.1 -- -T 0 -p 1



---------------------------

FAILURE

---------------------------



I tried several DPDK versions (1.7.1, 2.0.0, 2.2.0, 16.07). All fail in eth_ixgbevf_dev_init.

Usually the error code is -100, but in some cases also I saw -15.



Please advise

Thanks,

Eli



-------------------------------------------------------------------------------------------------------------------------------------------------
This email and any files transmitted and/or attachments with it are confidential and proprietary information of
Toga Networks Ltd., and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager. This message contains confidential
information of Toga Networks Ltd., and is intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on
the contents of this information is strictly prohibited.
------------------------------------------------------------------------------------------------------------------------------------------------

             reply	other threads:[~2016-11-10 14:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-10 14:52 Eli Britstein [this message]
2016-11-10 15:02 Eli Britstein

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=VI1PR0201MB23193CCCE2BA7392C3F0606483B80@VI1PR0201MB2319.eurprd02.prod.outlook.com \
    --to=eli.britstein@toganetworks.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).