Re: [vpp-dev] vpp show no packet and high rx-miss

2019-08-28 Thread William Tu
On Wed, Aug 28, 2019 at 9:42 AM Damjan Marion wrote: > > > > > On 28 Aug 2019, at 18:23, William Tu wrote: > > > > On Wed, Aug 28, 2019 at 7:58 AM Damjan Marion wrote: > >> > >> > >> Havre you bound NIC to vfio-pci or uio_pci_generic? >

Re: [vpp-dev] vpp show no packet and high rx-miss

2019-08-28 Thread William Tu
On Wed, Aug 28, 2019 at 7:58 AM Damjan Marion wrote: > > > Havre you bound NIC to vfio-pci or uio_pci_generic? > I'm using uio_pci_generic. Should I use vfio-pci? Thanks William > > > On 27 Aug 2019, at 23:32, William Tu wrote: > > > > Hi, > > > &

[vpp-dev] vpp show no packet and high rx-miss

2019-08-27 Thread William Tu
Hi, I'm new to vpp and hit an error when receiving no packet from PCI device. My setup is below: /etc/vpp# cat startup.conf unix { nodaemon log /var/log/vpp/vpp.log full-coredump cli-listen /run/vpp/cli.sock gid vpp } api-segment { gid vpp } socksvr { default } cpu { main-core 1 cor

Re: [vpp-dev] How to measure performance of memif

2019-08-23 Thread William Tu
mode and do xconnect or even better “l2 patch”. > > > > On 23 Aug 2019, at 16:52, William Tu wrote: > > > > Hi, > > > > I'm looking for something like l2fwd application using memif interfaces. > > So at a container, simply receive packets from on

[vpp-dev] How to measure performance of memif

2019-08-23 Thread William Tu
Hi, I'm looking for something like l2fwd application using memif interfaces. So at a container, simply receive packets from one memif port, and forward to another memif port. I'm trying to measure the performance in slide Memif Performance – L2 https://events.linuxfoundation.org/wp-content/upload

Re: [vpp-dev] Question about libmemif API

2019-08-18 Thread William Tu
> > -Original Message- > From: William Tu > Sent: 2019年8月15日 23:26 > To: Yao, Chengqiang > Cc: vpp-dev@lists.fd.io > Subject: Re: [vpp-dev] Question about libmemif API > > On Thu, Aug 15, 2019 at 8:02 AM William Tu wrote: > > > > Hi Chengqiang

Re: [vpp-dev] Question about libmemif API

2019-08-15 Thread William Tu
On Thu, Aug 15, 2019 at 8:02 AM William Tu wrote: > > Hi Chengqiang, > > Thanks for your reply. > > On Wed, Aug 14, 2019 at 11:52 PM Yao, Chengqiang > wrote: > > > > Hi William, > > > > You do not need to copy the packets out of memif. Once you f

Re: [vpp-dev] Question about libmemif API

2019-08-15 Thread William Tu
cket buffer from dev->rx_bufs, how does libmemif know that I'm done with these 32 packet buffer and libmemif can re-cycle them back to rx? Regards, William > > Best Regards, > Chengqiang Yao > > > > -Original Message- > From: vpp-dev@lists.fd.io On Behalf Of

[vpp-dev] Question about libmemif API

2019-08-14 Thread William Tu
Hi, I'm working on using libmemif in OVS. https://patchwork.ozlabs.org/patch/1140858/ While using the API, one question I have is, when I call err = memif_rx_burst(dev->handle, qid, dev->rx_bufs, NETDEV_MAX_BURST, &recv); There are 'recv' number of packets are at dev->rx_bufs, do I have to cop