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 Yao, Chengqiang
[vpp-dev] Question about libmemif API 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

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 finish > > processing all these packets, call m

Re: [vpp-dev] Question about libmemif API

2019-08-15 Thread William Tu
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 finish > processing all these packets, call memif_refill_queue() function to free > these buffers. Let's say if you r

Re: [vpp-dev] Question about libmemif API

2019-08-14 Thread Yao, Chengqiang
Hi William, You do not need to copy the packets out of memif. Once you finish processing all these packets, call memif_refill_queue() function to free these buffers. Let's say if you receive 32 packets in memif_rx_burst function, after processing, call memif_refill_queue with count=32 to fr