Re: [vpp-dev] Packet copy in plugins/nsim

2019-02-01 Thread Raj
Thanks Florin! Raj On Fri, Feb 1, 2019 at 2:07 AM Florin Coras wrote: > > Hi Raj, > > Partly. Check “show buffers” > > Florin > > > On Jan 31, 2019, at 1:04 AM, Raj wrote: > > > > Hi Florin, > > > > On Wed, Jan 30, 2019 at 10:01 PM Florin Coras > > wrote: > > > >> Because if it can work with

Re: [vpp-dev] Packet copy in plugins/nsim

2019-01-31 Thread Florin Coras
Hi Raj, Partly. Check “show buffers” Florin > On Jan 31, 2019, at 1:04 AM, Raj wrote: > > Hi Florin, > > On Wed, Jan 30, 2019 at 10:01 PM Florin Coras wrote: > >> Because if it can work with all of its buffers cached, without flushing them >> to main memory, it can access and therefore ‘pr

Re: [vpp-dev] Packet copy in plugins/nsim

2019-01-31 Thread Raj
Hi Florin, On Wed, Jan 30, 2019 at 10:01 PM Florin Coras wrote: > Because if it can work with all of its buffers cached, without flushing them > to main memory, it can access and therefore ‘process’ them faster. Understood. Is there any means to see how many buffers are in use currently, and i

Re: [vpp-dev] Packet copy in plugins/nsim

2019-01-30 Thread Florin Coras
Hi Raj, > On Jan 30, 2019, at 6:49 AM, Raj wrote: > > Hello Florin, > > Thanks a lot for your reply. > > On Tue, Jan 29, 2019 at 9:15 PM Florin Coras wrote: >> >> VPP typically works best if configured with a relatively small number of >> buffers. > > I am trying to understand why this wo

Re: [vpp-dev] Packet copy in plugins/nsim

2019-01-30 Thread Raj
Hello Florin, Thanks a lot for your reply. On Tue, Jan 29, 2019 at 9:15 PM Florin Coras wrote: > > VPP typically works best if configured with a relatively small number of > buffers. I am trying to understand why this would be the case. > On the other hand, nsim can induce a large amount of d

Re: [vpp-dev] Packet copy in plugins/nsim

2019-01-29 Thread Florin Coras
VPP typically works best if configured with a relatively small number of buffers. On the other hand, nsim can induce a large amount of delay, so the buffers cannot be used to temporarily store the data. Florin > On Jan 29, 2019, at 3:19 AM, Raj wrote: > > Hello all, > > While I was browsing

[vpp-dev] Packet copy in plugins/nsim

2019-01-29 Thread Raj
Hello all, While I was browsing through the nsim code (plugins/nsim), in nsim_inline() we are copying the packet data to ep->data like below clib_memcpy (ep->data, vlib_buffer_get_current (b[0]), ep->current_length); and in nsim_input.c the same packet is trans