[dpdk-users] how to select correct queue/action that match VF device

Michael Umansky mishka99 at gmail.com
Tue May 31 22:31:58 CEST 2016


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


More information about the users mailing list