HI,
I have bound a port to dpdk using the dpdk-devbind.sh script root@compute16:/usr/src/dpdk-stable-16.11.1# $DPDK_DIR/tools/dpdk-devbind.py --bind=vfio-pci eth4 root@compute16:/usr/src/dpdk-stable-16.11.1# $DPDK_DIR/tools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:43:00.0 'Myri-10G Dual-Protocol NIC' drv=vfio-pci unused=myri10ge,igb_uio But I am unable to add the port to the bridge. ds2283@compute16:~/ovs$ sudo ovs-vsctl add-port br0 dpdk-p0 -- set Interface dpdk-p0 type=dpdk options:dpdk-devargs=0000:43:00.0 ovs-vsctl: Error detected while setting up 'dpdk-p0': Error attaching device '0000:43:00.0' to DPDK. See ovs-vswitchd log for details. ovs-vsctl: The default log directory is "/usr/local/var/log/openvswitch". ds2283@compute16:~/ovs$ I have followed the steps from this link to install OVS: https://github.com/openvswitch/ovs/blob/master/Documentation/intro/install/g eneral.rst And http://docs.openvswitch.org/en/latest/intro/install/dpdk/ to install and setup DPDK. Right now this is the status of hugepages: ds2283@compute16:~/ovs$ grep Huge /proc/meminfo AnonHugePages: 548864 kB HugePages_Total: 2048 HugePages_Free: 1536 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB ds2283@compute16:~/ovs$ I had allocated 1024 hugepages of 2M for Node0 and 1024 hugepages for Node2. Here are some other configurations and logs: ds2283@compute16:~/ovs$ sudo ovs-vswitchd unix:$DB_SOCK --pidfile --detach 2017-04-11T01:44:10Z|00001|ovs_numa|INFO|Discovered 16 CPU cores on NUMA node 0 2017-04-11T01:44:10Z|00002|ovs_numa|INFO|Discovered 16 CPU cores on NUMA node 1 2017-04-11T01:44:10Z|00003|ovs_numa|INFO|Discovered 2 NUMA nodes and 32 CPU cores 2017-04-11T01:44:10Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitc h/db.sock: connecting... 2017-04-11T01:44:10Z|00005|reconnect|INFO|unix:/usr/local/var/run/openvswitc h/db.sock: connected 2017-04-11T01:44:10Z|00006|dpdk|INFO|DPDK Enabled - initializing... 2017-04-11T01:44:10Z|00007|dpdk|INFO|No vhost-sock-dir provided - defaulting to /usr/local/var/run/openvswitch 2017-04-11T01:44:10Z|00008|dpdk|INFO|EAL ARGS: ovs-vswitchd --socket-mem 1024,0 -c 0x00000001 2017-04-11T01:44:10Z|00009|dpdk|INFO|EAL: Detected 32 lcore(s) 2017-04-11T01:44:10Z|00010|dpdk|WARN|EAL: No free hugepages reported in hugepages-1048576kB 2017-04-11T01:44:10Z|00011|dpdk|INFO|EAL: Probing VFIO support... 2017-04-11T01:44:10Z|00012|dpdk|INFO|EAL: VFIO support initialized 2017-04-11T01:44:11Z|00013|dpdk|INFO|DPDK Enabled - initialized 2017-04-11T01:44:11Z|00014|timeval|WARN|Unreasonably long 1115ms poll interval (20ms user, 996ms system) 2017-04-11T01:44:11Z|00015|timeval|WARN|faults: 2799 minor, 0 major 2017-04-11T01:44:11Z|00016|timeval|WARN|context switches: 3 voluntary, 5 involuntary 2017-04-11T01:44:11Z|00017|coverage|INFO|Event coverage, avg rate over last: 5 seconds, last minute, last hour, hash=edcf6a06: 2017-04-11T01:44:11Z|00018|coverage|INFO|bridge_reconfigure 0.0/sec 0.000/sec 0.0000/sec total: 1 2017-04-11T01:44:11Z|00019|coverage|INFO|cmap_expand 0.0/sec 0.000/sec 0.0000/sec total: 8 2017-04-11T01:44:11Z|00020|coverage|INFO|miniflow_malloc 0.0/sec 0.000/sec 0.0000/sec total: 15 2017-04-11T01:44:11Z|00021|coverage|INFO|hmap_pathological 0.0/sec 0.000/sec 0.0000/sec total: 1 2017-04-11T01:44:11Z|00022|coverage|INFO|hmap_expand 0.0/sec 0.000/sec 0.0000/sec total: 384 2017-04-11T01:44:11Z|00023|coverage|INFO|txn_unchanged 0.0/sec 0.000/sec 0.0000/sec total: 2 2017-04-11T01:44:11Z|00024|coverage|INFO|txn_incomplete 0.0/sec 0.000/sec 0.0000/sec total: 1 2017-04-11T01:44:11Z|00025|coverage|INFO|poll_create_node 0.0/sec 0.000/sec 0.0000/sec total: 40 2017-04-11T01:44:11Z|00026|coverage|INFO|seq_change 0.0/sec 0.000/sec 0.0000/sec total: 62 2017-04-11T01:44:11Z|00027|coverage|INFO|pstream_open 0.0/sec 0.000/sec 0.0000/sec total: 1 2017-04-11T01:44:11Z|00028|coverage|INFO|stream_open 0.0/sec 0.000/sec 0.0000/sec total: 1 2017-04-11T01:44:11Z|00029|coverage|INFO|util_xalloc 0.0/sec 0.000/sec 0.0000/sec total: 7335 2017-04-11T01:44:11Z|00030|coverage|INFO|netdev_get_hwaddr 0.0/sec 0.000/sec 0.0000/sec total: 4 2017-04-11T01:44:11Z|00031|coverage|INFO|netlink_received 0.0/sec 0.000/sec 0.0000/sec total: 3 2017-04-11T01:44:11Z|00032|coverage|INFO|netlink_sent 0.0/sec 0.000/sec 0.0000/sec total: 1 2017-04-11T01:44:11Z|00033|coverage|INFO|89 events never hit ds2283@compute16:~/ovs$ ds2283@compute16:~/ovs$ sudo ovs-vsctl add-port br0 vhostuser0 -- set Interface vhostuser0 type=dpdkvhostuser ds2283@compute16:~/ovs$ sudo ovs-vsctl show 9d7ca519-3421-40b8-8397-06af8d2dc4cd Bridge "br0" Port "dpdk-p0" Interface "dpdk-p0" type: dpdk options: {dpdk-devargs="0000:43:00.0"} error: "Error attaching device '0000:43:00.0' to DPDK" Port "br0" Interface "br0" type: internal Port "vhostuser0" Interface "vhostuser0" type: dpdkvhostuser ds2283@compute16:~/ovs$ Although I was able to create vhostuser0, I do not see it under ifconfig. After issuing br0 (bridge) up (ifconfig br0 up), I see it under ifconfig. I also see some ovs-netdev interface, but I do not see vhostuser0 under ifconfig. ds2283@compute16:~/ovs$ ifconfig br0 Link encap:Ethernet HWaddr 96:74:35:62:6c:41 inet6 addr: fe80::9474:35ff:fe62:6c41/64 Scope:Link UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:648 (648.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:1332509 errors:0 dropped:0 overruns:0 frame:0 TX packets:1332509 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:375458182 (375.4 MB) TX bytes:375458182 (375.4 MB) ovs-netdev Link encap:Ethernet HWaddr 6a:de:68:2d:7a:4c inet6 addr: fe80::68de:68ff:fe2d:7a4c/64 Scope:Link UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:648 (648.0 B) I have tried everything and am not sure what am I missing. Grateful for any kind of help. Thank you, Deepti _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
