From mboxrd@z Thu Jan 1 00:00:00 1970 From: "lifuqiong" Subject: [ovs-discuss] DpdkVhostUser port config and state error in ovs 2.5 release version, Is this bug fixed? Date: Tue, 31 May 2016 15:09:30 +0800 Message-ID: <000901d1bb0b$60589ef0$2109dcd0$@cncloudsec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7453720641376568966==" To: , , Return-path: Content-Language: zh-cn List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: discuss-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org Sender: "discuss" List-Id: dev.dpdk.org This is a multipart message in MIME format. --===============7453720641376568966== Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01D1BB4E.6E80E800" Content-Language: zh-cn This is a multipart message in MIME format. ------=_NextPart_000_000A_01D1BB4E.6E80E800 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, When creating a dpdkvhostuser port in ovs 2.5, when starting vm which connected to this port, using command "ovs-ofctl show br0", it will shows like this: 3(vhost-user-0): addr:00:00:00:00:00:00 config: PORT_DOWN state: LINK_DOWN speed: 0 Mbps now, 0 Mbps max the config and state are both wrong, is this bug fixed? If not fix this bug, when ovs is controlled by sdn controller like Floodlight, floodlight will check ovs's port using only config and state as follows: public boolean isEnabled() { return (!state.contains(OFPortState.LINK_DOWN) && !config.contains(OFPortConfig.PORT_DOWN)); } So, dpdkvhostuser port will be treated as not enabled and the packet-in message will drop which will cause the vm connected to dpdkvhostuer port can't communicate with other vms; Thank you. ------=_NextPart_000_000A_01D1BB4E.6E80E800 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi, =

          When = creating a dpdkvhostuser port in ovs 2.5, when starting vm which = connected to this port, using command “ovs-ofctl show br0”, = it will shows like this:

 

3(vhost-user-0): = addr:00:00:00:00:00:00

     config:     = PORT_DOWN

     state:   =    LINK_DOWN

     speed: 0 = Mbps now, 0 Mbps max

 

 

the config and state are both wrong, is this bug = fixed?

 

If not fix this bug, when ovs is controlled by sdn = controller like Floodlight, floodlight will check ovs’s port using = only config and state as follows:

 

public boolean isEnabled() = {

        return = (!state.contains(OFPortState.LINK_DOWN) && = !config.contains(OFPortConfig.PORT_DOWN));

}

 

So, dpdkvhostuser port = will be treated as not enabled and the packet-in message will drop which = will cause the vm connected to dpdkvhostuer port can’t communicate = with other vms;

 

 

 

Thank = you.

------=_NextPart_000_000A_01D1BB4E.6E80E800-- --===============7453720641376568966== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZGlzY3VzcyBt YWlsaW5nIGxpc3QKZGlzY3Vzc0BvcGVudnN3aXRjaC5vcmcKaHR0cDovL29wZW52c3dpdGNoLm9y Zy9tYWlsbWFuL2xpc3RpbmZvL2Rpc2N1c3MK --===============7453720641376568966==--