Hi Ciara,I got the ovs-dpdk vhostuser working. However, I am only getting
1million packet/second Max in the VM. Is there any way to increase the speed. I
have also noticed that dpdk0 port (physical port) in OVS shows 1000Mbps max.
Is this the reason? and is there any way to increase the speed?
ovs-ofctl show br0OFPT_FEATURES_REPLY (xid=0x2):
dpid:0000a0369f2ca1aan_tables:254, n_buffers:256capabilities: FLOW_STATS
TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IPactions: output enqueue
set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src
mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst 1(dpdk0): addr:a0:36:9f:2c:a1:aa
config: 0 state: 0 current: 10GB-FD supported:
10MB-HD 100MB-HD 100MB-FD 1GB-HD COPPER AUTO_NEG AUTO_PAUSE_ASYM speed:
10000 Mbps now, 1000 Mbps max 2(dpdkvhost0): addr:00:00:00:00:00:00 config:
PORT_DOWN state: LINK_DOWN speed: 0 Mbps now, 0 Mbps max
LOCAL(br0): addr:a0:36:9f:2c:a1:aa config: PORT_DOWN state:
LINK_DOWN current: 10MB-FD COPPER speed: 10 Mbps now, 0 Mbps max
Thanks
RegardsHaris Tanvir
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: RE: [ovs-discuss] dpdk vhostuser port not working
> Date: Wed, 25 Nov 2015 10:49:22 +0000
>
> >
> >
> > Thanks Ciara for reply
> > Yea i Assigned dpdkvhost port to a VM using libvirt. Following was the Tag i
> > used
> >
> > <interface type='vhostuser'>
> > <source type='unix' path='/var/openvswitch/dpdkvhost0.sock'
> I'm not sure if the ".sock" is necessary here. The name of the file should
> correspond to the port name, so it should just be
> /var/openvswitch/dpdkvhost0. Check this directory to confirm.
>
> > mode='client'/>
> > <mac address='52:54:00:3b:83:1a'/>
> > <model type='virtio'/>
> > </interface>
> >
> > This is what i get in a VM as a result
> >
> > 00:07.0 Ethernet Contoller: Red Hat, Inc Virtio network device
> >
> > This is eth0 interface inside VM.
> > When i "tcpdump -i eth0" in a VM, i receive no packets, even though my ovs-
> > bridge is receiving packets.
>
> Do you see either of the following logs?:
> INFO|vHost Device '/var/run/openvswitch/dpdkvhost0' 0 has been added
> INFO|vHost Device '/var/run/openvswitch/dpdkvhost0' can't be added - name not
> found
>
> Thanks,
> Ciara
>
> >
> >
> >
> > > From: [email protected]
> > > To: [email protected]
> > > CC: [email protected]
> > > Subject: RE: [ovs-discuss] dpdk vhostuser port not working
> > > Date: Wed, 25 Nov 2015 10:29:24 +0000
> > >
> > > > Hi,
> > > > I am using ovs 2.4.0. I have added 1 physical dpdk port and 4 vhostuser
> > ports.
> > > > Following is my bridge:
> > > > Bridge "br0"
> > > > Port "dpdkvhost3"
> > > > Interface "dpdkvhost3"
> > > > type: dpdkvhostuser
> > > > Port "dpdk0"
> > > > Interface "dpdk0"
> > > > type: dpdk
> > > > Port "br0"
> > > > Interface "br0"
> > > > type: internal
> > > > Port "dpdkvhost1"
> > > > Interface "dpdkvhost1"
> > > > type: dpdkvhostuser
> > > > Port "dpdkvhost0"
> > > > Interface "dpdkvhost0"
> > > > type: dpdkvhostuser
> > > > However, the traffic is only received by the physcal ports and NOT by
> > > > dpdkvhostuser ports. As you can see below that there are no Rx packets
> > on
> > > > any port other than port1(physical port)
> > > > port 4: rx pkts=0, bytes=?, drop=?, errs=?, frame=?, over=?, crc=?
> > > > tx pkts=0, bytes=?, drop=1511, errs=?, coll=?
> > > > port LOCAL: rx pkts=337, bytes=32050, drop=0, errs=0, frame=0, over=0,
> > > > crc=0
> > > > tx pkts=5856, bytes=379808, drop=281, errs=0, coll=0
> > > > port 1: rx pkts=7419, bytes=505712, drop=0, errs=0, frame=0, over=0,
> > crc=0
> > > > tx pkts=336, bytes=33604, drop=0, errs=0, coll=0
> > > > port 2: rx pkts=0, bytes=?, drop=?, errs=?, frame=?, over=?, crc=?
> > > > tx pkts=0, bytes=?, drop=6944, errs=?, coll=?
> > > > port 3: rx pkts=0, bytes=?, drop=?, errs=?, frame=?, over=?, crc=?
> > > > tx pkts=0, bytes=?, drop=4604, errs=?, coll=?
> > > >
> > > > Following is the only flow in my bridge:
> > > > NXST_FLOW reply (xid=0x4):
> > > > cookie=0x0, duration=8763.150s, table=0, n_packets=1969,
> > n_bytes=127366,
> > > > idle_age=14, actions=FLOOD
> > > >
> > > >
> > > > Does anyone know why I am not receiving any traffic on other ports?
> > >
> > > Have you brought up VMs with vhost-user ports successfully? dpdkvhost
> > receive function will not succeed until a VM with the associated socket is
> > detected.
> > >
> > > Launch QEMU with the following (repeat for each dpdkvhostuser port):
> > > -chardev
> > socket,id=char1,path=/usr/local/var/run/openvswitch/dpdkvhost0
> > > -netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce
> > > -device virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1
> > >
> > > Please see INSTALL.DPDK.md for further instructions.
> > >
> > > If you have already gotten this far, have you seen any errors? You can
> > enable RTE_LIBRTE_VHOST_DEBUG=y in DPDK to get some more clues.
> > >
> > > Thanks,
> > > Ciara
> > >
> > > >
> > > > Regards
> > > > Haris Tanvir
> > > >
> > > >
> > > >
> > > >
> > > >
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss