[ovs-discuss] could not create netdev enp2s0 of unknown type dpdk

Shivaram Mysore shivaram.mysore at gmail.com
Tue Nov 22 16:40:44 UTC 2016


Thanks.  Still not helping :-(  FYI: I am configuring OVS on a Intel
Celeron with 4 ports to use it as a hardware switch.  Hence, vfio loaded.
I am running the following commands:

*# ovs-vsctl add-br ovsdpdkbr0 -- set bridge ovsdpdkbr0
datapath_type=netdev*
*# ovs-vsctl list-br*
*# ovs-vsctl add-port ovsdpdkbr0 dpdk0 -- set Interface dpdk0 type=dpdk*
*# ovs-vsctl add-port ovsdpdkbr0 dpdk1 -- set Interface dpdk1 type=dpdk*
*# ovs-vsctl add-port ovsdpdkbr0 dpdk2 -- set Interface dpdk2 type=dpdk*
*# ovs-vsctl show*



# *tail -50 /var/log/openvswitch/ovs-vswitchd.log*
...
2016-11-22T16:33:34.605Z|00458|ofproto_dpif|INFO|netdev at ovs-netdev:
Datapath supports recirculation
2016-11-22T16:33:34.605Z|00459|ofproto_dpif|INFO|netdev at ovs-netdev: MPLS
label stack length probed as 3
2016-11-22T16:33:34.605Z|00460|ofproto_dpif|INFO|netdev at ovs-netdev:
Datapath supports unique flow ids
2016-11-22T16:33:34.605Z|00461|ofproto_dpif|INFO|netdev at ovs-netdev:
Datapath does not support ct_state
2016-11-22T16:33:34.605Z|00462|ofproto_dpif|INFO|netdev at ovs-netdev:
Datapath does not support ct_zone
2016-11-22T16:33:34.605Z|00463|ofproto_dpif|INFO|netdev at ovs-netdev:
Datapath does not support ct_mark
2016-11-22T16:33:34.605Z|00464|ofproto_dpif|INFO|netdev at ovs-netdev:
Datapath does not support ct_label
2016-11-22T16:33:34.605Z|00465|bridge|INFO|bridge ovsdpdkbr0: added
interface ovsdpdkbr0 on port 65534
2016-11-22T16:33:34.605Z|00466|bridge|INFO|bridge ovsdpdkbr0: using
datapath ID 0000fe3274da604f
2016-11-22T16:33:34.605Z|00467|connmgr|INFO|ovsdpdkbr0: added service
controller "punix:/var/run/openvswitch/ovsdpdkbr0.mgmt"
2016-11-22T16:33:34.623Z|00468|netdev|WARN|could not create netdev dpdk0 of
unknown type dpdk
2016-11-22T16:33:34.624Z|00469|bridge|WARN|could not open network device
dpdk0 (Address family not supported by protocol)
2016-11-22T16:33:34.631Z|00470|netdev|WARN|could not create netdev dpdk1 of
unknown type dpdk
2016-11-22T16:33:34.631Z|00471|bridge|WARN|could not open network device
dpdk1 (Address family not supported by protocol)
2016-11-22T16:33:34.631Z|00472|netdev|WARN|could not create netdev dpdk0 of
unknown type dpdk
2016-11-22T16:33:34.631Z|00473|bridge|WARN|could not open network device
dpdk0 (Address family not supported by protocol)
2016-11-22T16:33:34.637Z|00474|netdev|WARN|could not create netdev dpdk1 of
unknown type dpdk
2016-11-22T16:33:34.637Z|00475|bridge|WARN|could not open network device
dpdk1 (Address family not supported by protocol)
2016-11-22T16:33:34.637Z|00476|netdev|WARN|could not create netdev dpdk0 of
unknown type dpdk
2016-11-22T16:33:34.637Z|00477|bridge|WARN|could not open network device
dpdk0 (Address family not supported by protocol)
2016-11-22T16:33:34.637Z|00478|netdev|WARN|could not create netdev dpdk2 of
unknown type dpdk
2016-11-22T16:33:34.637Z|00479|bridge|WARN|could not open network device
dpdk2 (Address family not supported by protocol)
root at ovswitch:/home/ovs#


On Tue, Nov 22, 2016 at 3:52 AM, Chandran, Sugesh <sugesh.chandran at intel.com
> wrote:

>
>
>
>
> *Regards*
>
> *_Sugesh*
>
>
>
> *From:* ovs-discuss-bounces at openvswitch.org [mailto:ovs-discuss-bounces@
> openvswitch.org] *On Behalf Of *Shivaram Mysore
> *Sent:* Tuesday, November 22, 2016 8:31 AM
> *To:* discuss at openvswitch.org
> *Subject:* [ovs-discuss] could not create netdev enp2s0 of unknown type
> dpdk
>
>
>
> Hello,
>
>
>
>
>
> I am setting up DPDK on Ubuntu 16.04.  I am getting the error "*could not
> create netdev enp2s0 of unknown type dpdk*".  What am I doing wrong?
>
>
>
> Thanks
>
>
>
> /Shivaram
>
>
>
> root at ovswitch:~#* /sbin/dpdk_nic_bind --status*
>
>
>
> Network devices using DPDK-compatible driver
>
> ============================================
>
> 0000:02:00.0 'I211 Gigabit Network Connection' drv=igb_uio unused=igb
>
> 0000:03:00.0 'I211 Gigabit Network Connection' drv=igb_uio unused=igb
>
> 0000:05:00.0 'I211 Gigabit Network Connection' drv=igb_uio unused=igb
>
>
>
> root at ovswitch:~# * ovs-vsctl add-br ovs-br0 -- set bridge ovs-br0
> datapath_type=netdev*
>
>
>
> root at ovswitch:~# * ovs-vsctl add-port ovs-br0 enp2s0 -- set Interface
> enp2s0 type=dpdk*
>
> *[Sugesh] Arbitatory port naming for the DPDK ports are not supported in
> OVS-DPDK for now.*
>
> *You should use the port name as ‘dpdk0’, ‘dpdk1’, … than using enp2s0.*
>
> *The names are assigned to the dpdk ports in the order of port binding.*
>
> *i.e the port that bind to igb_uio first,  will get the name as dpdk0,
> second one will be dpdk1 and so on.*
>
>
>
>
>
> root at ovswitch:~# * ovs-vsctl show*
>
> 0f1088cb-d647-4065-9a46-0a0194b7176a
>
>     Bridge "ovs-br0"
>
>         Port "enp2s0"
>
>             Interface "enp2s0"
>
>                 type: dpdk
>
>                 error: "could not open network device enp2s0 (Address
> family not supported by protocol)"
>
>         Port "ovs-br0"
>
>             Interface "ovs-br0"
>
>                 type: internal
>
>     ovs_version: "2.5.0"
>
>
>
>
>
>
>
> root at ovswitch:~# * tail -50 /var/log/openvswitch/ovs-vswitchd.log*
>
> 2016-11-22T07:40:38.703Z|00041|rconn|INFO|ovs-br0<->tcp:10.10.11.19:6653:
> connected
>
> 2016-11-22T07:40:48.705Z|00042|memory|INFO|peak resident set size grew
> 211% in last 26.0 seconds, from 12040 kB to 37472 kB
>
> 2016-11-22T07:40:48.705Z|00043|memory|INFO|handlers:1 ofconns:1 ports:1
> revalidators:1 rules:13
>
> 2016-11-22T07:42:14.962Z|00044|ofproto_dpif|INFO|netdev at ovs-netdev:
> Datapath supports recirculation
>
> 2016-11-22T07:42:14.963Z|00045|ofproto_dpif|INFO|netdev at ovs-netdev: MPLS
> label stack length probed as 3
>
> 2016-11-22T07:42:14.963Z|00046|ofproto_dpif|INFO|netdev at ovs-netdev:
> Datapath supports unique flow ids
>
> 2016-11-22T07:42:14.963Z|00047|ofproto_dpif|INFO|netdev at ovs-netdev:
> Datapath does not support ct_state
>
> 2016-11-22T07:42:14.963Z|00048|ofproto_dpif|INFO|netdev at ovs-netdev:
> Datapath does not support ct_zone
>
> 2016-11-22T07:42:14.963Z|00049|ofproto_dpif|INFO|netdev at ovs-netdev:
> Datapath does not support ct_mark
>
> 2016-11-22T07:42:14.963Z|00050|ofproto_dpif|INFO|netdev at ovs-netdev:
> Datapath does not support ct_label
>
> 2016-11-22T07:42:14.965Z|00051|bridge|INFO|bridge ovs-br0: added
> interface ovs-br0 on port 65534
>
> 2016-11-22T07:42:14.965Z|00052|bridge|INFO|bridge ovs-br0: using datapath
> ID 0000e2de68243044
>
> 2016-11-22T07:42:14.965Z|00053|connmgr|INFO|ovs-br0: added service
> controller "punix:/var/run/openvswitch/ovs-br0.mgmt"
>
> 2016-11-22T07:43:55.207Z|00054|netdev|WARN|could not create netdev enp2s0
> of unknown type dpdk
>
> 2016-11-22T07:43:55.207Z|00055|bridge|WARN|could not open network device
> enp2s0 (Address family not supported by protocol)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20161122/4f431afd/attachment-0001.html>


More information about the discuss mailing list