Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-07 Thread longtrb
Hi, this is vppctl sh error: root@ubuntu2004:/home/ubuntu# vppctl sh error Count                  Node                              Reason                Severity 1809             l2-output                      L2 output packets            error 1809              l2-input                       L

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-07 Thread longtrb
[Edited Message Follows] On Thu, Apr 7, 2022 at 06:44 PM, Mohsin Kazmi wrote: > > > > Please use tcpdump to trace on Linux side to see what is happening. Please > also check for error counters on Linux side. > > > > > > Hi Mohsin, After dump, *I see that on tap interface, it can receiv

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-07 Thread longtrb
[Edited Message Follows] On Thu, Apr 7, 2022 at 06:44 PM, Mohsin Kazmi wrote: > > > > Please use tcpdump to trace on Linux side to see what is happening. Please > also check for error counters on Linux side. > > > > > > Hi Mohsin, After dump, *I see that on tap interface, it can receiv

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-07 Thread longtrb
[Edited Message Follows] On Thu, Apr 7, 2022 at 06:44 PM, Mohsin Kazmi wrote: > > > > Please use tcpdump to trace on Linux side to see what is happening. Please > also check for error counters on Linux side. > > > > > > Hi Mohsin, After dump, *I see that on tap interface, it can receiv

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-07 Thread longtrb
[Edited Message Follows] On Thu, Apr 7, 2022 at 06:44 PM, Mohsin Kazmi wrote: > > > > Please use tcpdump to trace on Linux side to see what is happening. Please > also check for error counters on Linux side. > > > > > > Hi Mohsin, After dump, *I see that on tap interface, it can receiv

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-07 Thread longtrb
On Thu, Apr 7, 2022 at 06:44 PM, Mohsin Kazmi wrote: > > > > Please use tcpdump to trace on Linux side to see what is happening. Please > also check for error counters on Linux side. > > > > > > Hi Mohsin, After dump, *I see that on tap interface, it can receive ping message from 192.1

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-06 Thread longtrb
On Thu, Apr 7, 2022 at 05:04 AM, Mohsin Kazmi wrote: > > trace add virtio-input 10 Hi Mohsin. This is the trace log: --- Start of thread 1 vpp_wk_0 --- Packet 1 00:25:26:931409: virtio-input virtio: hw_if_index 1 next-index 4 vring 0 len 42 hdr: flags 0x00 g

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-06 Thread longtrb
[Edited Message Follows] Hi All, I created virtio interface and using l2 xconnect to connect it to tap interface: vppctl create int virtio :00:08.0 gso-enabled vppctl create tap id 0 host-ip4-addr 192.168.56.101/24 gso vppctl set interface l2 xconnect tap0 virtio-0/0/8/0 vppctl set interfac

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-06 Thread longtrb
Hi Mohsin, I created virtio interface and using l2 xconnect to connect it to tap interface: vppctl create int virtio :00:08.0 gso-enabled vppctl create tap id 0 host-ip4-addr 192.168.56.101/24 gso vppctl set interface l2 xconnect tap0 virtio-0/0/8/0 vppctl set interface l2 xconnect virtio-0/

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-04-05 Thread longtrb
Hi Mohsin, Thank you, After trying with dpdk as you said, the latency and throughput is still not better than without vpp ( use direct linux kernel). Is VPP native virtio interface better than linux kernel? Do you have an example benchmark of vpp virtio? Thank. -=-=-=-=-=-=-=-=-=-=-=- Links: Yo

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-31 Thread longtrb
[Edited Message Follows] Thank Mohsin, I create interface without DPDK like below: > > create int virtio :00:08.0 gso-enabl > but I got *error* : *create interface virtio: device not bound to 'vfio-pci' or 'uio_pci_generic' kernel module * I tried modprobe virtio_pci but still got it. Li

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-31 Thread longtrb
Thank Mohsin, I create interface without DPDK like below: > > create int virtio :00:08.0 gso-enabl > but I got *error* : *create interface virtio: device not bound to 'vfio-pci' or 'uio_pci_generic' kernel module * I tried modprobe virtio_pci but still got it. Do you know how to fix that?

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-31 Thread longtrb
Hi Mohsin, Please see below: > > > > Can you please share the numbers you are getting? > > *Without VPP, I get 5Gbps. With VPP I get ~2Gbps.* > > > > And also please share the output of: > > > > sh hardware > > > > sh tap > > > > sh threads > > > > sh cpu > > Please see in

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-31 Thread longtrb
Hi Jerome, > > you enabled gso but didn't turn gro on. IOW, in this mode, VPP accepts GSO > packets sent by linux but won't coalesce packets to reduce the load on > linux side. > You may be interested in this article > https://medium.com/fd-io-vpp/getting-to-40g-encrypted-container-networking-wit

Re: [vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-31 Thread longtrb
Thank you Ole, > > NIC - VPP - BSD socket app (using LD_PRELOAD > https://s3-docs.fd.io/vpp/22.02/developer/extras/vcl_ldpreload.html > ) ==> Can any my application (Java, Python,...) run on vlc ld preload like NIC - VPP - vcl ld_preload socket - application? > > But the answer here is very

[vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-30 Thread longtrb
[Edited Message Follows] Dear vpp-dev teams, I am a newbie in VPP. Many thanks to you all for making great Vpp. I have many applications in user space (written by java, C, python,...) and I want to connect those apps to VPP so what is the fastest way that VPP can support without  changing the a

[vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-30 Thread longtrb
[Edited Message Follows] Dear vpp-dev teams, I am a newbie in VPP. Many thanks to you all for making great Vpp. I have many applications in user space (written by java, C, python,...) and I want to connect those apps to VPP so what is the fastest way that VPP can support without  changing the a

[vpp-dev] Fastest way to connect application in user space to VPP #vpp

2022-03-30 Thread longtrb
Dear vpp-dev teams, I am a newbie in VPP. Many thanks to you all for making great Vpp. I have many applications in user space (written by java, C, python,...) and I want to connect those apps to VPP so what is the fastest way that VPP can support without  changing the application? I tried with