All of lore.kernel.org
 help / color / mirror / Atom feed
* DPDK failed to handle intialize  VF
@ 2013-11-12  7:12 cheng.luo.nq-FCd8Q96Dh0JBDgjK7y7TUQ
  0 siblings, 0 replies; only message in thread
From: cheng.luo.nq-FCd8Q96Dh0JBDgjK7y7TUQ @ 2013-11-12  7:12 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

Hi,

I am using DPDK for SRIOV.
I have one Intel X520 with two PFs.
After binding the two PFs to igb_uio, I create two VFs and assign
them to a virtual machine.
I found that to wake up VF, the VF will send some message to PF 
such as IXGBE_VF_SET_MACVLAN(0x06) and IXGBE_VF_API_NEGOTIATE(0x08)
for the initialization.

However, DPDK's PMD driver does not handle this messgae.
In the source code /lib/librte_pmd_ixgbe/ixgbe_pf.c
the function ixgbe_rcv_msg_from_vf only handle the following message:
IXGBE_VF_SET_MAC_ADDR   (0x02)
IXGBE_VF_SET_MULTICAST  (0x03)
IXGBE_VF_SET_LPE	      (0x04)
IXGBE_VF_SET_VLAN		(0x05)
and take other message as error message and take no operation.
Therefore, if take DPDK to control the PF, I can not use VF with 
ixgbevf driver in the VMs.
The PMD driver will endless print error message as follow:
-------------
PMD: Unhandled Msg 00000006
PMD: Unhandled Msg 00000008
-----------

And in the VMs, it also prints endless error message
---------------------
[  447.339765] ixgbevf: eth1: ixgbevf_watchdog_task: NIC Link is Up, 10 Gbps
[  447.748556] ixgbevf: eth1: ixgbevf_watchdog_task: NIC Link is Up, 10 Gbps
[  447.844914] ixgbevf: eth1: ixgbevf_watchdog_task: NIC Link is Up, 10 Gbps
--------------------

While I also read the code in ixgbe, and found that it can handle message 0x06 and 0x08.
Is this a bug for DPDK ?
Or any step is wrong for my configuration?

I think DPDK should be ok to run in the host while with VF in the VM uses normal driver such as ixgbevf.




	

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

only message in thread, other threads:[~2013-11-12  7:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12  7:12 DPDK failed to handle intialize VF cheng.luo.nq-FCd8Q96Dh0JBDgjK7y7TUQ

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.