Re: [ovs-discuss] could not create netdev vhost-user1 of unknown type dpdkvhostuser

2017-12-28 Thread Flavio Leitner
On Thu, Dec 28, 2017 at 09:49:15PM +0800, 夏晨博 wrote:
> Hi,all
> 
> I tried to create vhost-user ports with OVS-DPDK, but failed. And I can't 
> find the solution.
> 
>  Step1: ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev
>  Step2: ovs-vsctl add-port br0 vhost-user1 -- set Interface vhost-user1 
> type=dpdkvhostuser
> 
> Step 1 is ok. But Step2 failed. I checked the log, it says:
> 
> 2017-12-28T13:11:22.979Z|00020|netdev|WARN|could not create netdev 
> vhost-user1 of unknown type dpdkvhostuser
> 2017-12-28T13:11:22.979Z|00021|bridge|WARN|could not open network device 
> vhost-user1 (Address family not supported by protocol)
> 2017-12-28T13:11:59.036Z|00022|netdev|WARN|could not create netdev 
> vhost-user1 of unknown type dpdkvhostuser
> 2017-12-28T13:11:59.036Z|00023|bridge|WARN|could not open network device 
> vhost-user1 (Address family not supported by protocol)
> 2017-12-28T13:13:58.919Z|00024|netdev|WARN|could not create netdev 
> vhost-user1 of unknown type dpdkvhostuser
> 2017-12-28T13:13:58.919Z|00025|bridge|WARN|could not open network device 
> vhost-user1 (Address family not supported by protocol)
> 
> I wonder if anyone knows the reason.
> 
> OVS version: 2.8.1
> DPDK version: 17.05.1
> OS version: CentOS 7
> 
> I tried again in ubuntu using the openvswitch-switch-dpdk package, the same 
> problem happened.

You need to enable DPDK feature first.

-- 
Flavio


___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Setting ovs bridge IP failed using ioctl

2017-12-28 Thread Scott Lowe

> On Dec 28, 2017, at 12:18 AM, netsurfed  wrote:
> 
> Hi all, 
> I created a bridge and added my Ethernet port to it, using commands like 
> these:
> 
> $ ovs-vsctl add-br br0
> $ ovs-vsctl add-port br0 eth0
> 
> and as soon as I ran the “add-port” command I lost all connectivity through 
> eth0.
> 
> I found on the website, 
> http://docs.openvswitch.org/en/latest/faq/issues/?highlight=ip%20link, can 
> restore functionality by moving the IP address to an Open vSwitch "internal" 
> device to solve the problem. 
> 
> I then tried to set "bro" IP through ioctl, but the ioctl returned failed, 
> errno was "19", and the error message was "no such device". 
> 
> If ioctl does not support the setting of an ovs bridge, why can I get IP from 
> ioctl??
> 
> Is involved in "modules_install"?


I don't know about using `ioctl`, but you should be able to assign an IP 
address to the br0 internal port using the `ip addr add` command, just as with 
most any other network interface.

Regards,

-- 
Scott

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] could not create netdev vhost-user1 of unknown type dpdkvhostuser

2017-12-28 Thread ??????
Hi,all

I tried to create vhost-user ports with OVS-DPDK, but failed. And I can't find 
the solution.

 Step1: ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev
 Step2: ovs-vsctl add-port br0 vhost-user1 -- set Interface vhost-user1 
type=dpdkvhostuser

Step 1 is ok. But Step2 failed. I checked the log, it says:

2017-12-28T13:11:22.979Z|00020|netdev|WARN|could not create netdev vhost-user1 
of unknown type dpdkvhostuser
2017-12-28T13:11:22.979Z|00021|bridge|WARN|could not open network device 
vhost-user1 (Address family not supported by protocol)
2017-12-28T13:11:59.036Z|00022|netdev|WARN|could not create netdev vhost-user1 
of unknown type dpdkvhostuser
2017-12-28T13:11:59.036Z|00023|bridge|WARN|could not open network device 
vhost-user1 (Address family not supported by protocol)
2017-12-28T13:13:58.919Z|00024|netdev|WARN|could not create netdev vhost-user1 
of unknown type dpdkvhostuser
2017-12-28T13:13:58.919Z|00025|bridge|WARN|could not open network device 
vhost-user1 (Address family not supported by protocol)

I wonder if anyone knows the reason.

OVS version: 2.8.1
DPDK version: 17.05.1
OS version: CentOS 7

I tried again in ubuntu using the openvswitch-switch-dpdk package, the same 
problem happened.___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss