Re: [vpp-dev] Buffer allocation failure

2017-06-30 Thread Alessio Silvestro
Thanks for the help, it works!

Alessio

On Fri, Jun 30, 2017 at 3:29 PM, Dave Barach (dbarach) <dbar...@cisco.com>
wrote:

> +1... Thanks… Dave
>
>
>
> *From:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] *On
> Behalf Of *Luke, Chris
> *Sent:* Friday, June 30, 2017 8:29 AM
> *To:* Alessio Silvestro <ale.silver...@gmail.com>; vpp-dev@lists.fd.io
> *Subject:* Re: [vpp-dev] Buffer allocation failure
>
>
>
> The packet you receive, what do you do with it?
>
>
>
> If you don’t forward it, you have two choices:
>
>
>
>- You could deallocate its buffer.
>- Or, better, recycle it and use that packets buffer for your outgoing
>packet. That way you avoid the expense of allocating a new one.
>
>
>
> Chris.
>
>
>
> *From:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io
> <vpp-dev-boun...@lists.fd.io>] *On Behalf Of *Alessio Silvestro
> *Sent:* Friday, June 30, 2017 8:25
> *To:* vpp-dev@lists.fd.io
> *Subject:* [vpp-dev] Buffer allocation failure
>
>
>
> Dear vvp-dev,
>
>
>
> I developed a new vpp node that listen for UDP traffic on a specific port,
> then, for each received packet, create a new buffer and send an UDP packet
> to the source IP address.
>
>
>
> The application is running fine, but when I send some thousands of
> packets, at some point vpp starts to give "buffer allocation failure" error.
>
>
>
> Where do you think could be the problem.
>
>
>
> Is the node not correctly de-allocating the buffer or there is some
> specific vpp and/or system configuration that can cause this problem?
>
>
>
> Best regards,
>
> Alessio
>
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] Buffer allocation failure

2017-06-30 Thread Luke, Chris
The packet you receive, what do you do with it?

If you don’t forward it, you have two choices:


  *   You could deallocate its buffer.
  *   Or, better, recycle it and use that packets buffer for your outgoing 
packet. That way you avoid the expense of allocating a new one.

Chris.

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Alessio Silvestro
Sent: Friday, June 30, 2017 8:25
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Buffer allocation failure

Dear vvp-dev,

I developed a new vpp node that listen for UDP traffic on a specific port, 
then, for each received packet, create a new buffer and send an UDP packet to 
the source IP address.

The application is running fine, but when I send some thousands of packets, at 
some point vpp starts to give "buffer allocation failure" error.

Where do you think could be the problem.

Is the node not correctly de-allocating the buffer or there is some specific 
vpp and/or system configuration that can cause this problem?

Best regards,
Alessio
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev