[dpdk-dev] [PATCH v4] KNI: use a memzone pool for KNI alloc/release

2014-10-22 Thread Liu, Jijiang
warnings being treated as errors > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Marc Sune > Sent: Tuesday, October 21, 2014 6:52 PM > To: Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4] KNI: use a memzone pool for K

[dpdk-dev] [PATCH v4] KNI: use a memzone pool for KNI alloc/release

2014-10-21 Thread Marc Sune
Thomas, v5: commit message arranged, all warnings from checkpatch.pl fixed except: WARNING: Macros with flow control statements should be avoided #104: FILE: lib/librte_kni/rte_kni.c:62: +#define KNI_MEM_CHECK(cond) do { if (cond) goto kni_fail; } while (0) a) This MACRO was there before, I just

[dpdk-dev] [PATCH v4] KNI: use a memzone pool for KNI alloc/release

2014-10-21 Thread Thomas Monjalon
Hi Marc, 2014-10-18 00:51, Marc Sune: > This patch implements the KNI memzone pool in order to prevent > memzone exhaustion when allocating/deallocating KNI interfaces. > > It adds a new API call, rte_kni_init(max_kni_ifaces) that shall > be called before any call to rte_kni_alloc() if KNI is use

[dpdk-dev] [PATCH v4] KNI: use a memzone pool for KNI alloc/release

2014-10-21 Thread Zhang, Helin
> This patch implements the KNI memzone pool in order to prevent memzone > exhaustion when allocating/deallocating KNI interfaces. > > It adds a new API call, rte_kni_init(max_kni_ifaces) that shall be called > before > any call to rte_kni_alloc() if KNI is used. > > v2: Moved KNI fd opening to

[dpdk-dev] [PATCH v4] KNI: use a memzone pool for KNI alloc/release

2014-10-18 Thread Marc Sune
This patch implements the KNI memzone pool in order to prevent memzone exhaustion when allocating/deallocating KNI interfaces. It adds a new API call, rte_kni_init(max_kni_ifaces) that shall be called before any call to rte_kni_alloc() if KNI is used. v2: Moved KNI fd opening to rte_kni_init(). R