Ping vpp tap interface via host tap interface also failed.
I checked vpp counters with ‘show runtime’, but it seems vpp doesn’t receive 
any packets.
‘u16 n_left = vring->used->idx – last;’ in function 
virtio_device_input_inline() is always 0.
Could you please give suggestions on root-causing the issue?

DBGvpp# show runtime
Thread 0 vpp_main (lcore 2)
Time 1.3, average vectors/node 0.00, last 128 main loops 0.00 per node 0.00
  vector rates in 0.0000e0, out 0.0000e0, drop 0.0000e0, punt 0.0000e0
             Name                 State         Calls          Vectors        
Suspends         Clocks       Vectors/Call
dpdk-process                    any wait                 0               0      
         1          5.10e1            0.00
ikev2-manager-process           any wait                 0               0      
         1          5.20e1            0.00
ip6-icmp-neighbor-discovery-ev  any wait                 0               0      
         1          4.70e1            0.00
unix-cli-local:0                 active                  0               0      
         9          2.36e3            0.00
unix-epoll-input                 polling            382236               0      
         0          3.18e1            0.00
---------------
Thread 1 vpp_wk_0 (lcore 6)
Time 1.3, average vectors/node 0.00, last 128 main loops 0.00 per node 0.00
  vector rates in 0.0000e0, out 0.0000e0, drop 0.0000e0, punt 0.0000e0
             Name                 State         Calls          Vectors        
Suspends         Clocks       Vectors/Call
unix-epoll-input                 polling               701               0      
         0          1.27e1            0.00
virtio-input                     polling            718881               0      
         0          2.96e1            0.00

Thanks.

From: Lijian Zhang (Arm Technology China)
Sent: 2019年6月18日 13:35
To: vpp-dev@lists.fd.io
Cc: nd <n...@arm.com>
Subject: VPP tap interface issue on Arm servers

Hi,
We tried to create a VPP tap interface, assigned ip address to both VPP and 
Linux side, and then ping VPP tap interface via host interface, and vice versa.
But ping failed on both side.

With below ping via VPP tap interface for example, it seems VPP has sent out 
packets, but there’s no any counter increasing on the interface of host side.

Could you please suggest on this issue?

DBGvpp# create tap
DBGvpp# set int ip address tap0 16.0.10.2/24
DBGvpp# set int state tap0 up

$ sudo ip a add 16.0.10.1/24 dev tap0

DBGvpp# clear interfaces
DBGvpp# clear errors
DBGvpp# clear runtime
DBGvpp# ping 16.0.10.1

Statistics: 5 sent, 0 received, 100% packet loss

DBGvpp# show runtime
Thread 0 vpp_main (lcore 2)
Time 88.2, average vectors/node 1.00, last 128 main loops 0.00 per node 0.00
  vector rates in 0.0000e0, out 5.6688e-2, drop 5.6688e-2, punt 0.0000e0
             Name                 State         Calls          Vectors        
Suspends         Clocks       Vectors/Call
api-rx-from-ring                any wait                 0               0      
         4          8.05e1            0.00
dhcp-client-process             any wait                 0               0      
         1          8.00e1            0.00
dpdk-process                    any wait                 0               0      
        30          3.45e1            0.00
drop                             active                  5               5      
         0          6.30e1            1.00
error-drop                       active                  5               5      
         0          7.24e1            1.00
fib-walk                        any wait                 0               0      
        44          4.35e1            0.00
ikev2-manager-process           any wait                 0               0      
        88          2.78e1            0.00
ip-neighbor-scan-process        any wait                 0               0      
         2          6.50e1            0.00
ip-route-resolver-process       any wait                 0               0      
         1          8.20e1            0.00
ip4-glean                        active                  5               5      
         0          9.50e2            1.00
ip4-lookup                       active                  5               5      
         0          1.39e2            1.00
ip4-reassembly-expire-walk      any wait                 0               0      
         9          4.09e1            0.00
ip6-icmp-neighbor-discovery-ev  any wait                 0               0      
        88          2.46e1            0.00
ip6-reassembly-expire-walk      any wait                 0               0      
         9          4.06e1            0.00
statseg-collector-process       time wait                0               0      
         9          6.33e1            0.00
tap0-output                      active                  5               5      
         0          8.16e1            1.00
tap0-tx                          active                  5               5      
         0          7.20e1            1.00
unix-cli-stdin                   active                  0               0      
        56          6.18e2            0.00
unix-epoll-input                 polling          25126436               0      
         0          3.14e1            0.00
---------------
Thread 1 vpp_wk_0 (lcore 6)
Time 88.2, average vectors/node 0.00, last 128 main loops 0.00 per node 0.00
  vector rates in 0.0000e0, out 0.0000e0, drop 0.0000e0, punt 0.0000e0
             Name                 State         Calls          Vectors        
Suspends         Clocks       Vectors/Call
unix-epoll-input                 polling             45817               0      
         0          1.47e1            0.00
virtio-input                     polling          46962827               0      
         0          2.96e1            0.00
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13313): https://lists.fd.io/g/vpp-dev/message/13313
Mute This Topic: https://lists.fd.io/mt/32103947/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