DPDK patches and discussions
 help / color / mirror / Atom feed
From: Shian-Tung Wong <shianwong@engreen.us>
To: dev@dpdk.org
Subject: [dpdk-dev] Unable to bring up VF interface at guest when using DPDK PMD driver on host
Date: Mon, 13 Oct 2014 12:55:39 -0700	[thread overview]
Message-ID: <CAHs1tM5sLcAwW8Fn2i36Wx2PvX_sXcmrs6kSjUyF9i4ug5Af_w@mail.gmail.com> (raw)

I create 7 Virtual Functions on 82599 using DPDK PMD PF ixgbe driver on a
host as stated in the DPDK programming guide:

    modprobe uio
    insmod ./build/kmod/igb_uio.ko
    ./pci_unbind.py -b igb_uio 0000:02:00.1
    echo 7 > /sys/bus/pci/devices/0000\:02\:00.1/max_vfs

Then I assign a VF to a KVM guest using "-device pci-assign,host=02:10.1".
When login to the guest, I see the interface in "ip addr" command, but the
interface is down.  I try to bring it up, but I can't:

       [DPDK-1.6.0]# ifconfig eth1 up
       SIOCSIFFLAGS: Network is down

On the host, I do configure the port up (using ifconfig) before creating
the virtual functions.

On the guest, I invoke rte_eal_init() with the port, I got this MAC error:

       PMD:     The MAC address is not valid.
                    The most likely cause of this error is that the VM host
                    has not assigned a valid MAC address to this VF device.
                    Please consult the DPDK Release Notes (FAQ section) for
                    a possible solution to this problem.

Any help is appreciated.

Regards,
Shian

                 reply	other threads:[~2014-10-13 19:47 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=CAHs1tM5sLcAwW8Fn2i36Wx2PvX_sXcmrs6kSjUyF9i4ug5Af_w@mail.gmail.com \
    --to=shianwong@engreen.us \
    --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).