[dpdk-dev] [PATCH v2] support free hugepages

2014-10-30 Thread Thomas Monjalon
2014-10-29 13:47, linhaifeng: > rte_eal_hugepage_free() is used for unlink all hugepages.If you want to > free all hugepages you must make sure that you have stop to use it,and you > must call this function before exit process. > > Signed-off-by: linhaifeng Thanks for raising the need. There is

[dpdk-dev] [PATCH v2] support free hugepages

2014-10-29 Thread Matthew Hall
On Wed, Oct 29, 2014 at 01:47:39PM +0800, linhaifeng wrote: > +int > +rte_eal_hugepage_free(void) > +{ > + struct hugepage_file *hugepg_tbl = g_hugepage_table.hugepg_tbl; > + unsigned i; > + unsigned nr_hugefiles = g_hugepage_table.nr_hugefiles; > + int ret = 0; > + > + for (i

[dpdk-dev] [PATCH v2] support free hugepages

2014-10-29 Thread Linhaifeng
On 2014/10/29 16:04, Qiu, Michael wrote: > 10/29/2014 2:41 PM, Linhaifeng : >> >> On 2014/10/29 14:14, Qiu, Michael wrote: >>> ? 10/29/2014 1:49 PM, linhaifeng ??: rte_eal_hugepage_free() is used for unlink all hugepages.If you want to free all hugepages you must make sure that you

[dpdk-dev] [PATCH v2] support free hugepages

2014-10-29 Thread Linhaifeng
On 2014/10/29 14:14, Qiu, Michael wrote: > ? 10/29/2014 1:49 PM, linhaifeng ??: >> rte_eal_hugepage_free() is used for unlink all hugepages.If you want to >> free all hugepages you must make sure that you have stop to use it,and you >> must call this function before exit process. >> >>

[dpdk-dev] [PATCH v2] support free hugepages

2014-10-29 Thread linhaifeng
rte_eal_hugepage_free() is used for unlink all hugepages.If you want to free all hugepages you must make sure that you have stop to use it,and you must call this function before exit process. Signed-off-by: linhaifeng --- .../lib/librte_eal/common/include/rte_memory.h | 11

[dpdk-dev] [PATCH v2] support free hugepages

2014-10-29 Thread Qiu, Michael
10/29/2014 2:41 PM, Linhaifeng : > > On 2014/10/29 14:14, Qiu, Michael wrote: >> ? 10/29/2014 1:49 PM, linhaifeng ??: >>> rte_eal_hugepage_free() is used for unlink all hugepages.If you want to >>> free all hugepages you must make sure that you have stop to use it,and you >>> must call this

[dpdk-dev] [PATCH v2] support free hugepages

2014-10-29 Thread Qiu, Michael
? 10/29/2014 1:49 PM, linhaifeng ??: > rte_eal_hugepage_free() is used for unlink all hugepages.If you want to > free all hugepages you must make sure that you have stop to use it,and you > must call this function before exit process. > > Signed-off-by: linhaifeng > --- >