[dpdk-dev] [PATCH v1] vhost: fix mbuf allocation failures

2020-04-28 Thread Sivaprasad Tummala
vhost buffer allocation is successful for packets that fit into a linear buffer. If it fails, vhost library is expected to drop the current buffer descriptor and skip to the next. The patch fixes the error scenario by skipping to next descriptor. Note: Drop counters are not currently supported. S

Re: [dpdk-dev] [PATCH v1] vhost: fix mbuf allocation failures

2020-04-29 Thread Maxime Coquelin
Hi Sivaprasad, On 4/28/20 11:52 AM, Sivaprasad Tummala wrote: > vhost buffer allocation is successful for packets that fit > into a linear buffer. If it fails, vhost library is expected > to drop the current buffer descriptor and skip to the next. > > The patch fixes the error scenario by skippin

Re: [dpdk-dev] [PATCH v1] vhost: fix mbuf allocation failures

2020-04-29 Thread Flavio Leitner
On Wed, Apr 29, 2020 at 10:43:01AM +0200, Maxime Coquelin wrote: > Hi Sivaprasad, > > On 4/28/20 11:52 AM, Sivaprasad Tummala wrote: > > vhost buffer allocation is successful for packets that fit > > into a linear buffer. If it fails, vhost library is expected > > to drop the current buffer descri

Re: [dpdk-dev] [PATCH v1] vhost: fix mbuf allocation failures

2020-04-30 Thread Tummala, Sivaprasad
Hi Flavio, Thanks for your comments. snipped > > The patch fixes the error scenario by skipping to next descriptor. > > Note: Drop counters are not currently supported. In that case shouldn't we continue to process the ring? Yes, we are updating the loop index and following the requir