Hi everybody

I haven't been able (for several days) to attach a DPDK interface to the
ovs :(:(

Device 0000:05:00.0 is in userspace with driver vfio
root@s131002:~# dpdk-devbind -s

Network devices using DPDK-compatible driver
============================================
0000:05:00.0 '82576 Gigabit Network Connection 10c9' drv=vfio-pci
unused=uio_pci_generic

But when I try to attach it to a dpdk bridge I got this error
2018-05-26T21:34:24Z|00630|dpdk|WARN|EAL: Requested device 0000:05:00.0
cannot be used
2018-05-26T21:34:24Z|00631|dpdk|ERR|EAL: Driver cannot attach the device (
0000:05:00.0)
2018-05-26T21:34:24Z|00632|netdev_dpdk|WARN|Error attaching device
'0000:05:00.0' to DPDK
2018-05-26T21:34:24Z|00633|netdev|WARN|enp5s0f0: could not set
configuration (Invalid argument)

NIC is a 1G Intel 82576
root@s131002:~# lspci -s 0000:05:00.0 -v
05:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network
Connection (rev 01)
Subsystem: Hewlett-Packard Company NC362i Integrated Dual port Gigabit
Server Adapter
Flags: fast devsel, IRQ 16
Memory at c0400000 (32-bit, non-prefetchable) [disabled] [size=128K]
Memory at c0420000 (32-bit, non-prefetchable) [disabled] [size=128K]
I/O ports at e880 [disabled] [size=32]
Memory at c04c0000 (32-bit, non-prefetchable) [disabled] [size=16K]
[virtual] Expansion ROM at c0440000 [disabled] [size=128K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
Capabilities: [70] MSI-X: Enable- Count=10 Masked-
Capabilities: [a0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number b4-99-ba-ff-ff-aa-4e-e0
Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
Kernel driver in use: vfio-pci
Kernel modules: igb

and I am using 2.8.1 from
root@s131002:~# ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.8.1
DB Schema 7.15.0
root@s131002:~# ovs-vswitchd --version
ovs-vswitchd (Open vSwitch) 2.8.1
root@s131002:~# ovsdb-server --version
ovsdb-server (Open vSwitch) 2.8.1
on Ubuntu 16.04.LTS

Hugepages enabled
root@s131002:~# cat /proc/meminfo | grep Huge
AnonHugePages:         0 kB
HugePages_Total:    4096
HugePages_Free:     3584
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
mounted in /dev/hugepages
root@s131002:~# grep huge /etc/mtab
cgroup /sys/fs/cgroup/hugetlb cgroup
rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0

and OVS (i believe) correctly configured
root@s131002:~# ovs-vsctl list Open_vSwitch
_uuid               : 5f252d80-d6b1-47af-a631-fdbf0d8e1ac6
bridges             : [2529e1b2-aa7d-49aa-a518-9bed93cb85ca,
d017d4b9-e102-4218-833e-3c9e9d654984, ef5b2201-34c2-4f76-9785-d41bbcde2afb]
cur_cfg             : 77
datapath_types      : [netdev, system]
db_version          : "7.15.0"
external_ids        : {hostname="s131002.nocix.net", rundir=
"/var/run/openvswitch", system-id="b312f7fa-be49-4834-bb3e-e81b0d16b966"}
iface_types         : [dpdk, dpdkr, dpdkvhostuser, dpdkvhostuserclient,
geneve, gre, internal, lisp, patch, stt, system, tap, vxlan]
manager_options     : [556761d2-acb2-43b6-a8eb-89564b7fb661]
next_cfg            : 77
other_config        : {dpdk-extra=" --proc-type primary -w 0000:05:00.0",
dpdk-hugepage-dir="/dev/hugepages", dpdk-init=True, dpdk-lcore-mask="0x04",
dpdk-mem-channels="4", dpdk-socket-mem="512,512", pmd-cpu-mask="0x11"}
ovs_version         : "2.8.1"
ssl                 : []
statistics          : {}
system_type         : ubuntu
system_version      : "16.04"

and in the log
2018-05-26T21:54:47.402Z|00021|dpdk|INFO|EAL ARGS: ovs-vswitchd -c 0x04
--huge-dir /dev/hugepages --socket-mem 512,512 --proc-type primary -w 0000:
05:00.0

Could any of you, with more expertise on the topic, please, provide me some
pointers?
I have tried all kind of combinations. and I am probably still thinking
within the box.....

I would really appreciate your kind guidance.

JM
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to