This seems a different issue. When an interface is bound to the
igb_uio driver, it loses its system name ("p3p1"). DPDK uses
small integers (port ids) to identify interfaces.
OVS prefixes the portid with the "dpdk" string. This is the command
to add the NIC with port id 0 to bridge br0:
ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
Please refer to INSTALL.DPDK.md in the source distribution for
more details.
On 19/05/2015 17:23, "gowrishankar" <[email protected]>
wrote:
>I am facing same problem. It seems it complained no such device. p3p1 is
>dpdk compatible driver now as well.
>
>dpdk_nic_bind.py --status
>
>Network devices using DPDK-compatible driver
>============================================
>0000:0e:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection'
>drv=igb_uio unused=vfio-pci
>0000:0e:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection'
>drv=igb_uio unused=vfio-pci
>
>
>ovs-vsctl add-port br0 p3p1 -- set Interface p3p1 type=dpdk
>
>ovs-vsctl: Error detected while setting up 'p3p1'. See ovs-vswitchd log
>for details.
>
>ovs-vswitchd.log:
>
>2015-05-19T16:05:45.835Z|00231|poll_loop|DBG|wakeup due to [POLLIN] on
>fd 22 (<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:155
>2015-05-19T16:05:45.836Z|00232|jsonrpc|DBG|unix:/usr/local/var/run/openvsw
>itch/db.sock:
>received notification, method="update",
>params=[null,{"Interface":{"34f674b5-9d66-4412-b2bb-a87223800c80":{"new":{
>"name":"p3p1","statistics":["map",[]],"mac":["set",[]],"options":["map",[]
>],"cfm_flap_count":["set",[]],"ifindex":["set",[]],"cfm_health":["set",[]]
>,"type":"dpdk","bfd_status":["map",[]],"ofport":["set",[]],"admin_state":[
>"set",[]],"error":["set",[]],"link_resets":["set",[]],"mac_in_use":["set",
>[]],"cfm_fault_status":["set",[]],"lacp_current":["set",[]],"mtu":["set",[
>]],"lldp":["map",[]],"ofport_request":["set",[]],"status":["map",[]],"othe
>r_config":["map",[]],"link_state":["set",[]],"cfm_remote_mpids":["set",[]]
>,"bfd":["map",[]],"cfm_remote_opstate":["set",[]],"cfm_mpid":["set",[]],"c
>fm_fault":["set",[]],"link_speed":["set",[]],"duplex":["set",[]],"ingress_
>policing_burst":0,"ingress_policing_rate":0}}},"Port":{"1dd81fa9-9e92-4392
>-a280-5bc9a9642a4b":{"new":{"statistics":["map",[]],"bond_downdelay":0,"na
>me":"p3p1","fake_bridge":false,"mac":["set",[]],"trunks":["set",[]],"tag":
>["set",[]],"rstp_status":["map",[]],"bond_updelay":0,"bond_active_slave":[
>"set",[]],"other_config":["map",[]],"status":["map",[]],"qos":["set",[]],"
>bond_mode":["set",[]],"interfaces":["uuid","34f674b5-9d66-4412-b2bb-a87223
>800c80"],"bond_fake_iface":false,"rstp_statistics":["map",[]],"vlan_mode":
>["set",[]],"lacp":["set",[]]}}},"Bridge":{"d64a8e1a-0e69-4cbd-9081-332e5a4
>e04e6":{"new":{"name":"br0","flood_vlans":["set",[]],"stp_enable":false,"p
>orts":["set",[["uuid","1dd81fa9-9e92-4392-a280-5bc9a9642a4b"],["uuid","37f
>926ae-5388-481e-a9da-4447904c1bf6"]]],"auto_attach":["set",[]],"rstp_enabl
>e":false,"fail_mode":["set",[]],"rstp_status":["map",[]],"flow_tables":["m
>ap",[]],"netflow":["set",[]],"datapath_type":"netdev","controller":["set",
>[]],"status":["map",[]],"ipfix":["set",[]],"other_config":["map",[]],"mirr
>ors":["set",[]],"datapath_id":"00001a8e4ad6bd4c","mcast_snooping_enable":f
>alse,"protocols":["set",[]],"sflow":["set",[]],"datapath_version":"<built-
>in>"},"old":{"ports":["uuid","37f926ae-5388-481e-a9da-4447904c1bf6"]}}},"O
>pen_vSwitch":{"d384f9bb-072c-4505-afc8-f136fb2e860d":{"new":{"manager_opti
>ons":["set",[]],"bridges":["uuid","d64a8e1a-0e69-4cbd-9081-332e5a4e04e6"],
>"statistics":["map",[]],"other_config":["map",[]],"cur_cfg":1,"next_cfg":2
>,"iface_types":["set",["dpdk","dpdkr","geneve","gre","gre64","internal","i
>psec_gre","ipsec_gre64","lisp","patch","stt","system","tap","vxlan"]],"ssl
>":["set",[]],"datapath_types":["set",["netdev","system"]]},"old":{"next_cf
>g":1}}}}]
>2015-05-19T16:05:45.836Z|00233|dpif|DBG|netdev@ovs-netdev: device br0 is
>on port 1
>2015-05-19T16:05:45.836Z|00234|bridge|WARN|could not open network device
>p3p1 (No such device)
>2015-05-19T16:05:45.836Z|00235|netlink_socket|DBG|nl_sock_transact_multipl
>e__
>(Success): nl(len:52, type=37(family-defined), flags=1[REQUEST], seq=f,
>pid=4294962906
>2015-05-19T16:05:45.836Z|00236|netlink_socket|DBG|nl_sock_recv__
>(Success): nl(len:72, type=2(error), flags=0, seq=f, pid=4294962906
>error(-2(No such file or directory), in-reply-to(nl(len:52,
>type=37(family-defined), flags=1[REQUEST], seq=f, pid=4294962906))
>2015-05-19T16:05:45.836Z|00237|netlink_socket|DBG|received NAK error=0
>(No such file or directory)
>2015-05-19T16:05:45.836Z|00238|jsonrpc|DBG|unix:/usr/local/var/run/openvsw
>itch/db.sock:
>send request, method="transact",
>params=["Open_vSwitch",{"lock":"ovs_vswitchd","op":"assert"},{"where":[["_
>uuid","==",["uuid","34f674b5-9d66-4412-b2bb-a87223800c80"]]],"row":{"ofpor
>t":-1,"error":"could
>not open network device p3p1 (No such
>device)"},"op":"update","table":"Interface"},{"where":[["_uuid","==",["uui
>d","d384f9bb-072c-4505-afc8-f136fb2e860d"]]],"row":{"cur_cfg":2},"op":"upd
>ate","table":"Open_vSwitch"}],
>id=7
>
>
>Thanks,
>Gowrishankar
>
>On Tuesday 19 May 2015 04:06 PM, Daniele Di Proietto wrote:
>>
>> On 19/05/2015 10:24, "钢锁0310" <[email protected]> wrote:
>>
>>>
>>> I setup ovs-dpdk by following INSTALL.DPDK.md
>>>
>>>
>>> [root@25 tools]# ./dpdk_nic_bind.py --status
>>>
>>> Network devices using DPDK-compatible driver
>>> ============================================
>>> 0000:00:19.0 'Ethernet Connection I217-LM' drv=igb_uio unused=vfio-pci
>>>
>>>
>>> crw------- 1 root root 247, 0 May 19 17:07 /dev/uio0
>>>uio0
>>> is ok
>>>
>>>
>>>
>>> but
>>>
>>>
>>> [root@25 tools]# ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0
>>> type=dpdk
>>> ovs-vsctl: Error detected while setting up 'dpdk0'. See ovs-vswitchd
>>>log
>>> for details.
>>>
>> Could you post the content of the ovs-vswitchd log?
>>
>>>
>>> i had bound 02:01.0 Ethernet controller: Intel Corporation 82545EM
>>> Gigabit Ethernet Controller (Copper) (rev 01)
>>> to ovs earlier and that is ok
>>>
>>>
>>> so i realy want to know what is wrong with binding I217-LM
>>> to ovs it does not to be support?
>>>
>>>
>>>
>>> *********************
>>> RTFSC
>>> *********************
>>>
>>>
>>>
>> _______________________________________________
>> discuss mailing list
>> [email protected]
>>
>>https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailm
>>an_listinfo_discuss&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uE
>>s&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=DxhydkAC7TMU1m7Dxi6OpqD
>>z5J6kfGB6S6sWA7Ydxfo&s=cKoQFzj0olOKzh-rcL7svmhqpWE-7rQaFD2We6yYga8&e=
>
>
>
>_______________________________________________
>discuss mailing list
>[email protected]
>https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailma
>n_listinfo_discuss&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&
>r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=DxhydkAC7TMU1m7Dxi6OpqDz5J
>6kfGB6S6sWA7Ydxfo&s=cKoQFzj0olOKzh-rcL7svmhqpWE-7rQaFD2We6yYga8&e=
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss