We were trying to get the following configuration working, but for some reason 
the packets are not flowing through when VPP + DPDK VIRTIO comes into play..

We read in one of the earlier topics that the same worked in VPP 17.07 
https://www.mail-archive.com/[email protected]/msg03649.html  but faced some 
compilation errors when compiling that version of vpp now..

Not sure if we are missing something in our config which may be very trivial..  
We would please like some help on the same..

At the end of the day we want to have DPDK app in vhost mode to communicate 
with a VPP + DPDK virtio mode

*DPDK app VHOST <----> VPP with DPDK virtio*

*We are using the compiled VPP 19.01 with dpdk version 18.11. Hugepages 
configured to 1GB*

The following configurations work

*1)  Testpmd 18.11 <-> Testpmd 18..1 ( Working )*

We are able to use run 2 instances of testpmd app with the following parameters 
and see packets flowing through.

./testpmd -l 0-1 -n 4 --socket-mem 1024,1024 
--vdev='eth_vhost0,iface=/opt/sock/sock2.sock' --no-pci --in-memory 
--huge-dir=/dev/hugepages --log-level=8 -- -i

./testpmd -l 3-4 -n 4 --socket-mem 1024,1024 
--vdev='virtio_user0,path=/opt/sock/sock2.sock' --no-pci --no-shconf 
--huge-dir=/dev/hugepages --log-level=8 -- -i

The memory registrations takes place fine and ports are up

VHOST_CONFIG: new vhost user connection is 17
VHOST_CONFIG: new device, handle is 0
VHOST_CONFIG: read message VHOST_USER_SET_OWNER
VHOST_CONFIG: read message VHOST_USER_GET_FEATURES
VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
VHOST_CONFIG: vring call idx:0 file:18
VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
VHOST_CONFIG: vring call idx:1 file:19
VHOST_CONFIG: read message VHOST_USER_SET_FEATURES
VHOST_CONFIG: read message VHOST_USER_SET_MEM_TABLE
VHOST_CONFIG: guest memory region 0, size: 0x40000000
guest physical addr: 0x140000000
guest virtual  addr: 0x140000000
host  virtual  addr: 0x7f1540000000
mmap addr : 0x7f1540000000
mmap size : 0x40000000
mmap align: 0x40000000
mmap off  : 0x0
VHOST_CONFIG: guest memory region 1, size: 0x40000000
guest physical addr: 0x2240000000
guest virtual  addr: 0x2240000000
host  virtual  addr: 0x7f1500000000
mmap addr : 0x7f1500000000
mmap size : 0x40000000
mmap align: 0x40000000
mmap off  : 0x0
VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM
VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR
VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK
VHOST_CONFIG: vring kick idx:0 file:22
VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM
VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR
VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK
VHOST_CONFIG: vring kick idx:1 file:23
VHOST_CONFIG: virtio is now ready for processing.

Port 0: link state change event
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE
VHOST_CONFIG: set queue enable: 1 to qp idx: 0

Port 0: queue state event
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE
VHOST_CONFIG: set queue enable: 1 to qp idx: 1

Port 0: queue state event

We started one testpmd in txonly and the other testpmd in rxonly and initiated 
the packet forwarding

set fwd rxonly; start

set fwd txonly; start

testpmd> show port stats all
######################## NIC statistics for port 0  ########################
RX-packets: 0          RX-missed: 0          RX-bytes:  0
RX-errors: 0
RX-nombuf:  0
*TX-packets: 41075968   TX-errors: 0          TX-bytes:  2628861952*

Throughput (since last show)
Rx-pps:            0
Tx-pps:       346731
############################################################################

testpmd> show port stats all
######################## NIC statistics for port 0  ########################
*RX-packets: 132805312  RX-missed: 0          RX-bytes:  2628861952*
RX-errors: 0
RX-nombuf:  0
TX-packets: 0          TX-errors: 0          TX-bytes:  0

Throughput (since last show)
Rx-pps:       185663
Tx-pps:            0
############################################################################

*2) VPP + DPDK vhost <-> testpmd virtio  : ( Working )*

In the vpp config file we have the following in the dpdk section and everything 
else as default

no-pci
log-level 8
socket-mem 1024,1024
huge-dir /dev/hugepages
vdev eth_vhost0,iface=/opt/sock/sock2.sock

When VPP starts, we see the following DPDK EAL arguments

./vpp[31572]: dpdk: EAL init args: -l 3-4 -n 4 --socket-mem 1024,1024 
--in-memory --no-pci --log-level 8 --huge-dir /dev/hugepages --vdev 
eth_vhost0,iface=/opt/sock/sock2.sock --file-prefix vpp

root@kickseed:/root/dpdk-18.11/build/app# ./testpmd -l 0-1 -n 4 --socket-mem 
1024,1024 --vdev='virtio_user0,path=/opt/sock/sock2.sock' --no-pci --no-shconf 
--huge-dir=/dev/hugepages --log-level=8 -- -i

DBGvpp#vppctl show log

2019/ 8/13 01:08:46:341 notice     dpdk       VHOST_CONFIG: new vhost user 
connection is 29
2019/ 8/13 01:08:46:341 notice     dpdk       VHOST_CONFIG: new device, handle 
is 0
2019/ 8/13 01:08:46:341 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_OWNER
2019/ 8/13 01:08:46:341 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_GET_FEATURES
2019/ 8/13 01:08:46:341 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_CALL
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: vring call idx:0 
file:30
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_CALL
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: vring call idx:1 
file:31
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_FEATURES
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_MEM_TABLE
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: guest memory region 
0, size: 0x40000000
2019/ 8/13 01:08:46:342 notice     dpdk          guest physical addr: 
0x140000000
2019/ 8/13 01:08:46:342 notice     dpdk          guest virtual  addr: 
0x140000000
2019/ 8/13 01:08:46:342 notice     dpdk          host  virtual  addr: 
0x7f5c40000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap addr : 0x7f5c40000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap size : 0x40000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap align: 0x40000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap off  : 0x0
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: guest memory region 
1, size: 0x40000000
2019/ 8/13 01:08:46:342 notice     dpdk          guest physical addr: 
0x2240000000
2019/ 8/13 01:08:46:342 notice     dpdk          guest virtual  addr: 
0x2240000000
2019/ 8/13 01:08:46:342 notice     dpdk          host  virtual  addr: 
0x7f5c00000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap addr : 0x7f5c00000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap size : 0x40000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap align: 0x40000000
2019/ 8/13 01:08:46:342 notice     dpdk          mmap off  : 0x0
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_NUM
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_BASE
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ADDR
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_KICK
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: vring kick idx:0 
file:34
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_NUM
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_BASE
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ADDR
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_KICK
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: vring kick idx:1 
file:35
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: virtio is now ready 
for processing.
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ENABLE
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: set queue enable: 1 
to qp idx: 0
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ENABLE
2019/ 8/13 01:08:46:342 notice     dpdk       VHOST_CONFIG: set queue enable: 1 
to qp idx: 1

DBGvpp# show hardware-interfaces
Name                Idx   Link  Hardware
*VhostEthernet0                     1     up   VhostEthernet0*
Link speed: 10 Gbps
Ethernet address 56:48:4f:53:54:00
VhostEthernet
*carrier up full duplex mtu 9206*
flags: admin-up pmd maybe-multiseg
rx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
module: unknown
max rx packet len: -1
promiscuous: unicast off all-multicast off
vlan offload: strip off filter off qinq off
rx offload avail:  vlan-strip
rx offload active: none
tx offload avail:  vlan-insert multi-segs
tx offload active: multi-segs
rss avail:         none
rss active:        none
tx burst function: (nil)
rx burst function: (nil)

local0                             0    down  local0
Link speed: unknown
local
DBGvpp# show int
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          
Count
VhostEthernet0                    1      up          9000/0/0/0
local0                            0     down          0/0/0/0

testpmd> show port info 0

********************* Infos for port 0  *********************
MAC address: E2:52:42:09:3D:65
Device name: virtio_user0
Driver name: net_virtio_user
Devargs: path=/opt/sock/sock2.sock
Connect to socket: 0
memory allocation on the socket: 0
*Link status: up*
Link speed: 10000 Mbps
Link duplex: full-duplex
MTU: 1500
Promiscuous mode: enabled
Allmulticast mode: disabled
Maximum number of MAC addresses: 64
Maximum number of MAC addresses of hash filtering: 0
VLAN offload:
strip off
filter off
qinq(extend) off
No RSS offload flow type is supported.
Minimum size of RX buffer: 64
Maximum configurable length of RX packet: 9728
Current number of RX queues: 1
Max possible RX queues: 1
Max possible number of RXDs per queue: 65535
Min possible number of RXDs per queue: 0
RXDs number alignment: 1
Current number of TX queues: 1
Max possible TX queues: 1
Max possible number of TXDs per queue: 65535
Min possible number of TXDs per queue: 0
TXDs number alignment: 1

testpmd> show port stats all

######################## NIC statistics for port 0  ########################
RX-packets: 0          RX-missed: 0          RX-bytes:  0
RX-errors: 0
RX-nombuf:  0
*TX-packets: 1165312    TX-errors: 0          TX-bytes:  74579968*

Throughput (since last show)
Rx-pps:            0
Tx-pps:            0
############################################################################

DBGvpp# show int
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          
Count
*VhostEthernet0                    1      up          9000/0/0/0     rx packets 
              1165312*
*rx bytes                74579968*
drops                    1165312
ip4                      1165312
local0                            0     down          0/0/0/0

*3) VPP + DPDK virtio  <-> testpmd vhost  : ( Not Working )*

in vpp startup config file we have the following in the DPDK section

no-pci
log-level 8
socket-mem 1024,1024
huge-dir /dev/hugepages
vdev virtio_user0,path=/opt/sock/sock2.sock

root@kickseed:/root/dpdk-18.11/build/app# ./testpmd -l 0-1 -n 4 --socket-mem 
1024,1024 --vdev='eth_vhost0,iface=/opt/sock/sock2.sock' --no-pci --in-memory 
--huge-dir=/dev/hugepages --log-level=8 -- -i

When we start VPP the following EAL arguments are used

./vpp[31771]: dpdk: EAL init args: -l 3-4 -n 4 --socket-mem 1024,1024 
--in-memory --no-pci --log-level 8 --huge-dir /dev/hugepages --vdev 
virtio_user0,path=/opt/sock/sock2.sock --file-prefix vpp

On the testpmd side we see the following memory registrations which seem to be 
proper

testpmd> VHOST_CONFIG: new vhost user connection is 17
VHOST_CONFIG: new device, handle is 0
VHOST_CONFIG: read message VHOST_USER_SET_OWNER
VHOST_CONFIG: read message VHOST_USER_GET_FEATURES
VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
VHOST_CONFIG: vring call idx:0 file:18
VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
VHOST_CONFIG: vring call idx:1 file:19
VHOST_CONFIG: read message VHOST_USER_SET_FEATURES
VHOST_CONFIG: read message VHOST_USER_SET_MEM_TABLE
VHOST_CONFIG: guest memory region 0, size: 0x40000000
guest physical addr: 0x140000000
guest virtual  addr: 0x140000000
host  virtual  addr: 0x7fba00000000
mmap addr : 0x7fba00000000
mmap size : 0x40000000
mmap align: 0x40000000
mmap off  : 0x0
VHOST_CONFIG: guest memory region 1, size: 0x40000000
guest physical addr: 0x2240000000
guest virtual  addr: 0x2240000000
host  virtual  addr: 0x7fb9c0000000
mmap addr : 0x7fb9c0000000
mmap size : 0x40000000
mmap align: 0x40000000
mmap off  : 0x0
VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM
VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR
VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK
VHOST_CONFIG: vring kick idx:0 file:22
VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM
VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR
VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK
VHOST_CONFIG: vring kick idx:1 file:23
VHOST_CONFIG: virtio is now ready for processing.

Port 0: link state change event
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE
VHOST_CONFIG: set queue enable: 1 to qp idx: 0

Port 0: queue state event
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE
VHOST_CONFIG: set queue enable: 1 to qp idx: 1

Port 0: queue state event

testpmd> show port info 0

********************* Infos for port 0  *********************
MAC address: 56:48:4F:53:54:00
Device name: eth_vhost0
Driver name: net_vhost
Devargs: iface=/opt/sock/sock2.sock
Connect to socket: 0
memory allocation on the socket: 0
*Link status: up*
Link speed: 10000 Mbps
Link duplex: full-duplex
MTU: 1500
Promiscuous mode: disabled
Allmulticast mode: disabled
Maximum number of MAC addresses: 1
Maximum number of MAC addresses of hash filtering: 0
VLAN offload:
strip off
filter off
qinq(extend) off
No RSS offload flow type is supported.
Minimum size of RX buffer: 0
Maximum configurable length of RX packet: 4294967295
Current number of RX queues: 1
Max possible RX queues: 1
Max possible number of RXDs per queue: 65535
Min possible number of RXDs per queue: 0
RXDs number alignment: 1
Current number of TX queues: 1
Max possible TX queues: 1
Max possible number of TXDs per queue: 65535
Min possible number of TXDs per queue: 0
TXDs number alignment: 1

DBGvpp# show int
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          
Count
*VirtioUser0                       1      up          9000/0/0/0*
local0                            0     down          0/0/0/0
DBGvpp# show hardware-interfaces
Name                Idx   Link  Hardware
*VirtioUser0                        1     up   VirtioUser0*
Link speed: 10 Gbps
Ethernet address b6:b6:82:2d:64:d3
Virtio User
*carrier up full duplex mtu 9206*
flags: admin-up pmd maybe-multiseg
rx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
module: unknown
max rx packet len: 9728
promiscuous: unicast off all-multicast on
vlan offload: strip off filter off qinq off
rx offload avail:  vlan-strip udp-cksum tcp-cksum tcp-lro
rx offload active: none
tx offload avail:  vlan-insert udp-cksum tcp-cksum tcp-tso multi-segs
tx offload active: multi-segs
rss avail:         none
rss active:        none
tx burst function: virtio_xmit_pkts_inorder
rx burst function: virtio_recv_mergeable_pkts_inorder

local0                             0    down  local0
Link speed: unknown
local

When we start testpmd to transmit packets to vpp, all packets end up in errors

testpmd> show port stats 0

######################## NIC statistics for port 0  ########################
RX-packets: 0          RX-missed: 0          RX-bytes:  0
RX-errors: 0
RX-nombuf:  0
*TX-packets: 0          TX-errors: 80605696   TX-bytes:  0*

Throughput (since last show)
Rx-pps:            0
Tx-pps:            0
############################################################################

On the vpp side we dont see any packets

DBGvpp# show int
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          
Count
*VirtioUser0                       1      up          9000/0/0/0*
local0                            0     down          0/0/0/0

Tried the above after setting MTU also to 1500. but still VPP does not receive 
any packets..

*4) VPP + DPDK VHOST <-> VPP + DPDK VIRTIO ( Not working )*

This is what we tried first before we tried the above 3 methods to debug what 
was going on..  Ping failure.

2 VPP startup files

startup1.conf

no-pci
log-level 8
socket-mem 1024,1024
huge-dir /dev/hugepages
vdev eth_vhost0,iface=/opt/sock/sock2.sock

startup2.conf

no-pci
log-level 8
socket-mem 1024,1024
huge-dir /dev/hugepages
vdev virtio_user0,path=/opt/sock/sock2.sock

When started we see the following DPDK EAL init respectively

. /vpp[32084]: dpdk: EAL init args: -l 3-4 -n 4 --socket-mem 1024,1024 
--in-memory --no-pci --log-level 8 --huge-dir /dev/hugepages --vdev 
eth_vhost0,iface=/opt/sock/sock2.sock --file-prefix vpp

./vpp[32089]: dpdk: EAL init args: -l 3-4 -n 4 --socket-mem 1024,1024 
--in-memory --no-pci --log-level 8 --huge-dir /dev/hugepages --vdev 
virtio_user0,path=/opt/sock/sock2.sock --file-prefix vpp

2019/ 8/13 01:33:34:976 notice     dpdk       VHOST_CONFIG: vhost-user server: 
socket created, fd: 22
2019/ 8/13 01:33:34:976 notice     dpdk       VHOST_CONFIG: bind to 
/opt/sock/sock2.sock
2019/ 8/13 01:33:34:976 notice     dpdk       EAL:   VFIO support not 
initialized
2019/ 8/13 01:33:34:976 notice     dpdk       EAL: Couldn't map new region for 
DMA
2019/ 8/13 01:33:34:976 notice     dpdk       EAL:   VFIO support not 
initialized
2019/ 8/13 01:33:34:976 notice     dpdk       EAL: Couldn't map new region for 
DMA
2019/ 8/13 01:33:34:976 notice     dpdk       rte_eth_dev_set_mtu: Function not 
supported
2019/ 8/13 01:33:34:976 notice     dpdk       rte_eth_dev_set_mtu: Function not 
supported
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: new vhost user 
connection is 29
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: new device, handle 
is 0
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_OWNER
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_GET_FEATURES
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_CALL
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: vring call idx:0 
file:30
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_CALL
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: vring call idx:1 
file:31
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_FEATURES
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_MEM_TABLE
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: guest memory region 
0, size: 0x40000000
2019/ 8/13 01:33:38:233 notice     dpdk          guest physical addr: 
0x140000000
2019/ 8/13 01:33:38:233 notice     dpdk          guest virtual  addr: 
0x140000000
2019/ 8/13 01:33:38:233 notice     dpdk          host  virtual  addr: 
0x7fcb00000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap addr : 0x7fcb00000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap size : 0x40000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap align: 0x40000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap off  : 0x0
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: guest memory region 
1, size: 0x40000000
2019/ 8/13 01:33:38:233 notice     dpdk          guest physical addr: 
0x2240000000
2019/ 8/13 01:33:38:233 notice     dpdk          guest virtual  addr: 
0x2240000000
2019/ 8/13 01:33:38:233 notice     dpdk          host  virtual  addr: 
0x7fcac0000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap addr : 0x7fcac0000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap size : 0x40000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap align: 0x40000000
2019/ 8/13 01:33:38:233 notice     dpdk          mmap off  : 0x0
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_NUM
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_BASE
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ADDR
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_KICK
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: vring kick idx:0 
file:34
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_NUM
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_BASE
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ADDR
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_KICK
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: vring kick idx:1 
file:35
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: virtio is now ready 
for processing.
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ENABLE
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: set queue enable: 1 
to qp idx: 0
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: read message 
VHOST_USER_SET_VRING_ENABLE
2019/ 8/13 01:33:38:233 notice     dpdk       VHOST_CONFIG: set queue enable: 1 
to qp idx: 1
2019/ 8/13 01:34:13:961 notice     dpdk       rte_eth_promiscuous_disable: 
Function not supported
2019/ 8/13 01:34:13:961 notice     dpdk       rte_eth_allmulticast_disable: 
Function not supported
2019/ 8/13 01:34:13:961 notice     dpdk       rte_eth_promiscuous_disable: 
Function not supported
2019/ 8/13 01:34:13:961 notice     dpdk       rte_eth_allmulticast_enable: 
Function not supported

DBGvpp# show interface
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          
Count
*VhostEthernet0                    1      up          9000/0/0/0*
local0                            0     down          0/0/0/0

DBGvpp# show hardware-interfaces
Name                Idx   Link  Hardware
VhostEthernet0                     1     up   VhostEthernet0
Link speed: 10 Gbps
Ethernet address 56:48:4f:53:54:00
VhostEthernet
*carrier up full duplex mtu 9206*
flags: admin-up pmd maybe-multiseg
rx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
module: unknown
max rx packet len: -1
promiscuous: unicast off all-multicast off
vlan offload: strip off filter off qinq off
rx offload avail:  vlan-strip
rx offload active: none
tx offload avail:  vlan-insert multi-segs
tx offload active: multi-segs
rss avail:         none
rss active:        none
tx burst function: (nil)
rx burst function: (nil)

local0                             0    down  local0
Link speed: unknown
local

DBGvpp#  set int ip addr VhostEthernet0 10.10.10.1/24
DBGvpp# set ip arp VhostEthernet0 10.10.10.2 b2:f6:54:17:4d:76

DBGvpp# show int
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          
Count
*VirtioUser0                       1      up          9000/0/0/0*
local0                            0     down          0/0/0/0
DBGvpp# show hardware-interfaces
Name                Idx   Link  Hardware
VirtioUser0                        1     up   VirtioUser0
Link speed: 10 Gbps
Ethernet address b2:f6:54:17:4d:76
Virtio User
carrier up full duplex mtu 9206
flags: admin-up pmd maybe-multiseg
rx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 1), desc 1024 (min 0 max 65535 align 1)
module: unknown
max rx packet len: 9728
promiscuous: unicast off all-multicast on
vlan offload: strip off filter off qinq off
rx offload avail:  vlan-strip udp-cksum tcp-cksum tcp-lro
rx offload active: none
tx offload avail:  vlan-insert udp-cksum tcp-cksum tcp-tso multi-segs
tx offload active: multi-segs
rss avail:         none
rss active:        none
tx burst function: virtio_xmit_pkts_inorder
rx burst function: virtio_recv_mergeable_pkts_inorder

local0                             0    down  local0
Link speed: unknown
local

DBGvpp#  set int ip addr VirtioUser0 10.10.10.2/24
DBGvpp# set ip arp VirtioUser0 10.10.10.1 56:48:4f:53:54:00

DBGvpp# ping 10.10.10.1

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

Name                 State         Calls          Vectors        Suspends       
  Clocks       Vectors/Call     Perf Ticks
VirtioUser0-output               active                  5               5      
         0          7.57e3            1.00
VirtioUser0-tx                   active                  5               5      
         0          8.48e3            1.00

DBGvpp# show int
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          
Count
*VirtioUser0                       1      up          9000/0/0/0     tx packets 
                    5*
tx bytes                     550

The dpdk-input on the remote does not seem to be receiving any packet.. We 
gdb'ed and could see that the rte_eth_tx_burst() and the corresponding 
virtio_xmit_pkts_inorder() get called..

On the remote rte_eth_rx_burst get called from dpdk-input and the following 
functions are triggered ->  virtio_recv_mergeable_pkts_inorder() -> 
virtqueue_dequeue_rx_inorder() returns 0 in num..
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13711): https://lists.fd.io/g/vpp-dev/message/13711
Mute This Topic: https://lists.fd.io/mt/32843106/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to