Hi,

I am trying to pass traffic with vhost-user interface and seeing tx-drops on 
virtual interface. Here is the setup: created a bridge domain with a physical 
interface and a vhost-user interface. Physical interface GigabitEthernet5/0/0 
is connected to traffic generator. As shown below, observing drops on  
VirtualEthernet0/0/0 .

Following is the config and vhost-user commands o/p:


DBGvpp# show bridge-domain 1 detail

  BD-ID   Index   BSN  Age(min)  Learning  U-Forwrd  UU-Flood  Flooding  
ARP-Term  BVI-Intf

    1       1      0     off        on        on        on        on       off  
     N/A



           Interface           If-idx ISN  SHG  BVI  TxFlood        
VLAN-Tag-Rewrite

     GigabitEthernet5/0/0        3     1    0    -      *                 none

     GigabitEthernet5/0/1        4     1    0    -      *                 none

     VirtualEthernet0/0/0        5     1    0    -      *                 none


Virtual interface is operationally up. Connected to virtual interface server in 
VM.


DBGvpp# show hardware-interfaces VirtualEthernet0/0/0

              Name                Idx   Link  Hardware

VirtualEthernet0/0/0               5     up   VirtualEthernet0/0/0

  Ethernet address 02:fe:98:19:c2:6b

DBGvpp# show interface VirtualEthernet0/0/0

              Name               Idx       State          Counter          Count

VirtualEthernet0/0/0              5         up       tx packets                 
    1

                                                     tx bytes                   
   60

                                                     drops                      
    1





DBGvpp# show errors

   Count                    Node                  Reason

         3                l2-output               L2 output packets

         2                l2-learn                L2 learn packets

         2                l2-learn                L2 learn misses

         2                l2-input                L2 input packets

         3                l2-flood                L2 flood packets

         1         VirtualEthernet0/0/0-tx        tx packet drops (no available 
descriptors)


DBGvpp# show vhost-user VirtualEthernet0/0/0
Virtio vhost-user interfaces
Global:
  coalesce frames 32 time 1e-3
  number of rx virtqueues in interrupt mode: 0
Interface: VirtualEthernet0/0/0 (ifindex 5)
virtio_net_hdr_sz 12
features mask (0xffffffffffffffff):
 features (0x150208000):
   VIRTIO_NET_F_MRG_RXBUF (15)
   VIRTIO_NET_F_GUEST_ANNOUNCE (21)
   VIRTIO_F_INDIRECT_DESC (28)
   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 /socket/vnet-0 type client errno "Success"

rx placement:
   thread 0 on vring 1, polling
tx placement: lock-free
   thread 0 on vring 0

Memory regions (total 3)
region fd    guest_phys_addr    memory_size        userspace_addr     
mmap_offset        mmap_addr
====== ===== ================== ================== ================== 
================== ==================
  0     50    0x0000000100000000 0x00000001c0000000 0x00007fe393600000 
0x00000000c0000000 0x00007fc0e4a00000
  1     51    0x0000000000000000 0x00000000000a0000 0x00007fe2d3600000 
0x0000000000000000 0x00007fc024800000
  2     52    0x00000000000c0000 0x00000000bff40000 0x00007fe2d36c0000 
0x00000000000c0000 0x00007fbf648c0000

Virtqueue 0 (TX)
  qsz 256 last_avail_idx 0 last_used_idx 0
  avail.flags 0 avail.idx 0 used.flags 1 used.idx 0
  kickfd 53 callfd 54 errfd -1

Virtqueue 1 (RX)
  qsz 256 last_avail_idx 0 last_used_idx 0
  avail.flags 0 avail.idx 0 used.flags 1 used.idx 0
  kickfd 46 callfd 55 errfd -1

Tried dumping descriptors from Rx queue and didn’t find any entries. It’s all 
zeros.

Any idea what is going on here ?

Thanks,
Vijay

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10052): https://lists.fd.io/g/vpp-dev/message/10052
Mute This Topic: https://lists.fd.io/mt/24211191/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to