* [dpdk-dev] [PATCH]xen:fix an issue about memory size caculation in Dom0 driver
@ 2014-06-03 13:00 Jijiang Liu
2014-06-09 15:55 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Jijiang Liu @ 2014-06-03 13:00 UTC (permalink / raw)
To: dev
The unit of allocated_size is MB,so the change below is made. Otherwise, it will fail to free memory when
available memory is not enough.
Signed-off-by: Jijiang Liu <jijiang.liu@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
Tested-by: Heng Ding <hengx.ding@intel.com>
---
lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c b/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c
index a91c7ec..0f87905 100644
--- a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c
+++ b/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c
@@ -447,7 +447,7 @@ dom0_memory_reserve(uint32_t rsv_size)
return -ENOMEM;
}
- allocated_size += DOM0_MEMBLOCK_SIZE;
+ allocated_size += SIZE_PER_BLOCK;
size = DOM0_MEMBLOCK_SIZE;
vaddr = vstart;
--
1.7.7.6
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH]xen:fix an issue about memory size caculation in Dom0 driver
2014-06-03 13:00 [dpdk-dev] [PATCH]xen:fix an issue about memory size caculation in Dom0 driver Jijiang Liu
@ 2014-06-09 15:55 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2014-06-09 15:55 UTC (permalink / raw)
To: Jijiang Liu; +Cc: dev
2014-06-03 21:00, Jijiang Liu:
> The unit of allocated_size is MB,so the change below is made. Otherwise, it
> will fail to free memory when available memory is not enough.
>
> Signed-off-by: Jijiang Liu <jijiang.liu@intel.com>
> Acked-by: Huawei Xie <huawei.xie@intel.com>
> Tested-by: Heng Ding <hengx.ding@intel.com>
Applied for version 1.7.0.
Thanks
--
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-09 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-03 13:00 [dpdk-dev] [PATCH]xen:fix an issue about memory size caculation in Dom0 driver Jijiang Liu
2014-06-09 15:55 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).