On Wed, Jan 11, 2017 at 10:56:20AM -0800, Stephen Hemminger wrote:
> Please write generic code. Something like the following (untested).
Despite there are few compile errors (which are easy to fix), it works
fine.
More importantly, it saves near 2000 cycles if I apply the bulk free
to virtio_xmit
nstantin ; Stephen Hemminger
> >>
> >> Cc: Sergey Vyazmitinov ;
> >> olivier.m...@6wind.com; dev@dpdk.org
> >> Subject: Re: [dpdk-dev] [PATCH] kni: use bulk functions to allocate and
> >> free mbufs
> >>
> >> On 1/11/2017 5:
phen Hemminger [mailto:step...@networkplumber.org]
>>>> Sent: Wednesday, January 11, 2017 5:36 PM
>>>> To: Ananyev, Konstantin
>>>> Cc: Sergey Vyazmitinov ;
>>>> olivier.m...@6wind.com; Yigit, Ferruh ;
>> dev@dpdk.org
>>>> Subject: Re: [
: Ananyev, Konstantin
> >> Cc: Sergey Vyazmitinov ;
> >> olivier.m...@6wind.com; Yigit, Ferruh ;
> dev@dpdk.org
> >> Subject: Re: [dpdk-dev] [PATCH] kni: use bulk functions to allocate and
> >> free mbufs
> >>
> >> On Wed, 11 Jan 2017 17:28:2
livier.m...@6wind.com; Yigit, Ferruh ; dev@dpdk.org
>> Subject: Re: [dpdk-dev] [PATCH] kni: use bulk functions to allocate and free
>> mbufs
>>
>> On Wed, 11 Jan 2017 17:28:21 +
>> "Ananyev, Konstantin" wrote:
>>
>>>> -Origina
t; Sent: Wednesday, January 11, 2017 4:18 PM
> > > To: Sergey Vyazmitinov
> > > Cc: olivier.m...@6wind.com; Yigit, Ferruh ;
> > > dev@dpdk.org
> > > Subject: Re: [dpdk-dev] [PATCH] kni: use bulk functions to allocate and
> > > free mbufs
> > &g
c: olivier.m...@6wind.com; Yigit, Ferruh ;
> > dev@dpdk.org
> > Subject: Re: [dpdk-dev] [PATCH] kni: use bulk functions to allocate and
> > free mbufs
> >
> > On Fri, 30 Dec 2016 04:50:16 +0700
> > Sergey Vyazmitinov wrote:
> >
> > > /**
> >
> -Original Message-
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger
> Sent: Wednesday, January 11, 2017 4:18 PM
> To: Sergey Vyazmitinov
> Cc: olivier.m...@6wind.com; Yigit, Ferruh ;
> dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] kni:
Hi Sergey,
On 1/11/2017 4:17 PM, Stephen Hemminger wrote:
> On Fri, 30 Dec 2016 04:50:16 +0700
> Sergey Vyazmitinov wrote:
>
>> /**
>> + * Free n packets mbuf back into its original mempool.
>> + *
>> + * Free each mbuf, and all its segments in case of chained buffers. Each
>> + * segment is ad
On Wed, 11 Jan 2017 08:17:59 -0800, Stephen Hemminger
wrote:
> On Fri, 30 Dec 2016 04:50:16 +0700
> Sergey Vyazmitinov wrote:
>
> > /**
> > + * Free n packets mbuf back into its original mempool.
> > + *
> > + * Free each mbuf, and all its segments in case of chained
> > buffers. Each
> > + * s
On Fri, 30 Dec 2016 04:50:16 +0700
Sergey Vyazmitinov wrote:
> /**
> + * Free n packets mbuf back into its original mempool.
> + *
> + * Free each mbuf, and all its segments in case of chained buffers. Each
> + * segment is added back into its original mempool.
> + *
> + * @param mp
> + * The
Hi Sergey,
...
> diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
> index 4476d75..707c300 100644
> --- a/lib/librte_mbuf/rte_mbuf.h
> +++ b/lib/librte_mbuf/rte_mbuf.h
> @@ -1261,6 +1261,38 @@ static inline void rte_pktmbuf_free(struct rte_mbuf *m)
> }
>
> /**
> + * Free n p
12 matches
Mail list logo