Steven,
 i had validated no packet send from guest via tshark (like tcpdump).


guest is ubuntu 16.04


qemu command : ( connect the guest console via vncviewer )




/usr/libexec/qemu-kvm -enable-kvm -m 512 -cpu host -vga cirrus -vnc 0.0.0.0:0 
-drive file="ubuntu.qcow2",if=virtio,aio=threads -chardev 
socket,id=char1,path=/tmp/a.sock,server -netdev 
type=vhost-user,id=mynet1,chardev=char1,vhostforce -device 
virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1 -object 
memory-backend-file,id=mem,size=512M,mem-path=/dev/hugepages,share=on -numa 
node,memdev=mem -mem-prealloc 






thanks,
wuxp
 
------------------ Original ------------------
From:  "Steven Luong (sluong)"<slu...@cisco.com>;
Date:  Fri, Mar 16, 2018 00:56 AM
To:  "w...@anchnet.com"<w...@anchnet.com>; 
"vpp-dev@lists.fd.io"<vpp-dev@lists.fd.io>; 

Subject:  Re: [vpp-dev] unexpected 65535 rx packets on vhost-user interface

 
  
Wuxp,
 
 
 
The first thing is to validate your claim that nothing sent from the VM when 
VPP is restarted. Start tcpdump and watch nothing is sent from the VM. I assume 
it happens all the times as supposed to once in a blue moon.
 
 
 
If that is validated, I’d like to see your qemu startup command to see if I can 
recreate it myself.
 
 
 
Did you say your host is CentOS 7.4 or your VM is CentOS 7.4 or both?
 
 
 
Steven
 
 
  
From: <vpp-dev@lists.fd.io> on behalf of "w...@anchnet.com" <w...@anchnet.com>
 Date: Thursday, March 15, 2018 at 9:27 AM
 To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
 Subject: Re: [vpp-dev] unexpected 65535 rx packets on vhost-user interface
 
  
 
 
 
TRACE for first run
 vpp# trace add vhost-user-input 10
 vpp# create vhost socket /tmp/a.sock
 VirtualEthernet0/0/0
 vpp# set int state VirtualEthernet0/0/0 up
 vpp# show int
               Name               Idx       State          Counter          
Count     
 VirtualEthernet0/0/0              1         up       rx packets                
     1
                                                      rx bytes                  
    42
                                                      drops                     
     1
 local0                            0        down      
 vpp# show trace
 ------------------- Start of thread 0 vpp_main -------------------
 Packet 1
 
 00:01:29:986952: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:01:29:987327: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:01:29:987383: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:01:29:987408: error-drop
   arp-input: Interface is not IP enabled
 
 
 TRACE for second run
 vpp# trace add vhost-user-input 10
 vpp# create vhost socket /tmp/a.sock
 VirtualEthernet0/0/0
 vpp# set int state VirtualEthernet0/0/0 up
 vpp# show int
               Name               Idx       State          Counter          
Count     
 VirtualEthernet0/0/0              1         up       rx packets                
 65535
                                                      rx bytes                 
2752470
                                                      drops                     
 65535
 local0                            0        down      
 vpp# show trace
 ------------------- Start of thread 0 vpp_main -------------------
 Packet 1
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 2
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 3
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 4
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 5
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 6
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 7
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 8
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 9
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 Packet 10
 
 00:00:25:993064: vhost-user-input
      VirtualEthernet0/0/0 queue 0
    virtio flags:
     SINGLE_DESC Single descriptor packet
    virtio_net_hdr first_desc_len 54
      flags 0x00 gso_type 0
      num_buff 0
 00:00:25:993541: ethernet-input
   ARP: 52:54:00:98:01:01 -> ff:ff:ff:ff:ff:ff
 00:00:25:993589: arp-input
   request, type ethernet/IP4, address size 6/4
   52:54:00:98:01:01/192.168.3.2 -> 00:00:00:00:00:00/192.168.3.3
 00:00:25:993609: error-drop
   arp-input: Interface is not IP enabled
 
 vpp# 
  

Reply via email to