Aris,

From the output of show vhost, the memory regions is 0. The connection between 
VPP vhost-user and QEMU virtio_net driver does not have a happy ending.

     Memory regions (total 0)

Prior to launching the VM, turn on debug using "debug vhost-user on" in VPP to 
see more details on the messages exchanged.

Steven

On 5/10/18, 1:41 PM, "arisleivad...@sce.carleton.ca" 
<arisleivad...@sce.carleton.ca> wrote:

    Hi Steven,
    
    Yes the vhost-user is connected to a CSR 1k launched as VM by QEMU
    (version 2.11.1).
    
    I have appended the following lines to the xml configuration of the vm
    
        </interface>
        <interface type='vhostuser'>
          <mac address='00:00:00:00:00:01'/>
          <source type='unix' path='/var/run/vpp/vm1_1.sock' mode='server'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08'
    function='0x0'/>
        </interface>
        <interface type='vhostuser'>
          <mac address='02=0:00:00:00:00:02'/>
          <source type='unix' path='/var/run/vpp/vm1_2.sock' mode='server'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x09'
    function='0x0'/>
        </interface>
    
    The show vhost returns:
    
    Virtio vhost-user interfaces
    Global:
      coalesce frames 32 time 1e-3
      number of rx virtqueues in interrupt mode: 0
    Interface: VirtualEthernet0/0/0 (ifindex 3)
    virtio_net_hdr_sz 12
     features mask (0xffffffffffffffff):
     features (0x140008000):
       VIRTIO_NET_F_MRG_RXBUF (15)
       VHOST_USER_F_PROTOCOL_FEATURES (30)
       VIRTIO_F_VERSION_1 (32)
      protocol features (0x3)
       VHOST_USER_PROTOCOL_F_MQ (0)
       VHOST_USER_PROTOCOL_F_LOG_SHMFD (1)
    
     socket filename /var/run/vpp/vm1_1.sock type client errno "Success"
    
     rx placement:
     tx placement: spin-lock
       thread 0 on vring 0
    
     Memory regions (total 0)
    
    Interface: VirtualEthernet0/0/1 (ifindex 4)
    virtio_net_hdr_sz 12
     features mask (0xffffffffffffffff):
     features (0x140008000):
       VIRTIO_NET_F_MRG_RXBUF (15)
       VHOST_USER_F_PROTOCOL_FEATURES (30)
       VIRTIO_F_VERSION_1 (32)
      protocol features (0x3)
       VHOST_USER_PROTOCOL_F_MQ (0)
       VHOST_USER_PROTOCOL_F_LOG_SHMFD (1)
    
     socket filename /var/run/vpp/vm1_2.sock type client errno "Success"
    
     rx placement:
     tx placement: spin-lock
       thread 0 on vring 0
    
     Memory regions (total 0)
    
    
    Thanks,
    Aris
    
    
    
    
    
    > Aris,
    >
    > There is not enough information here. What is VPP's vhost-user interface
    > connected to? A VM launched by QEMU or a docker container running VPP with
    > DPDK virtio_net driver? What do you see in the output from show vhost?
    >
    > Steven
    >
    > On 5/9/18, 1:13 PM, "vpp-dev@lists.fd.io on behalf of
    > arisleivad...@sce.carleton.ca" <vpp-dev@lists.fd.io on behalf of
    > arisleivad...@sce.carleton.ca> wrote:
    >
    >     Hi,
    >
    >     I am trying to create a vhost and bridge it to a TenGigabitEthernet
    > DPDK
    >     enabled interface.
    >
    >     Even though the vhost is being created successfully I am getting a
    >     tx-error as follows:
    >
    >     vpp# show int
    >                   Name               Idx       State          Counter
    >     Count
    >     TenGigabitEthernet6/0/0           1         up       rx packets
    >           2231
    >                                                          rx bytes
    >         174297
    >                                                          drops
    >           2231
    >     TenGigabitEthernet6/0/1           2         up       rx packets
    >           2225
    >                                                          rx bytes
    >         173637
    >                                                          drops
    >           2225
    >     VirtualEthernet0/0/0              3         up       tx-error
    >           2231
    >     VirtualEthernet0/0/1              4         up       tx-error
    >           2225
    >
    >     If I do a show error I am getting that the VirtualEthernet-output
    >     interface is down:
    >
    >     vpp# show errors
    >        Count                    Node                  Reason
    >           4715                l2-output               L2 output packets
    >           4715                l2-learn                L2 learn packets
    >              2                l2-learn                L2 learn misses
    >           4715                l2-input                L2 input packets
    >           4715                l2-flood                L2 flood packets
    >           2360       VirtualEthernet0/0/0-output      interface is down
    >           2355       VirtualEthernet0/0/1-output      interface is down
    >
    >
    >     Is there a way that this can be resolved?
    >
    >     I am using version vpp v18.01.1-release and dpdk version 17.05.1 on
    > redhat
    >     7.3
    >
    >     Thanks,
    >     Aris
    >
    >
    >
    >
    >
    >     
    >
    >
    >
    >
    >
    
    
    


-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#9252): https://lists.fd.io/g/vpp-dev/message/9252
View All Messages In Topic (4): https://lists.fd.io/g/vpp-dev/topic/18972847
Mute This Topic: https://lists.fd.io/mt/18972847/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to