DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] Remove duplicated lines in memzone_reserve_aligned_thread_unsafe
@ 2014-01-02 13:05 peichao85
  2014-01-02 15:10 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: peichao85 @ 2014-01-02 13:05 UTC (permalink / raw)
  To: dev

From: Pei Chao <peichao85@gmail.com>

Remove duplicated lines when reserving memory zone.

Signed-off-by: Pei Chao <peichao85@gmail.com>
---
 lib/librte_eal/common/eal_common_memzone.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c
index f036621..d8916ab 100644
--- a/lib/librte_eal/common/eal_common_memzone.c
+++ b/lib/librte_eal/common/eal_common_memzone.c
@@ -128,13 +128,6 @@ memzone_reserve_aligned_thread_unsafe(const char *name, size_t len,
 	len += CACHE_LINE_MASK;
 	len &= ~((size_t) CACHE_LINE_MASK);
 
-	/* save original length */
-	requested_len = len;
-
-	/* reserve extra space for future alignment */
-	if (len)
-		len += align;
-
 	/* save requested length */
 	requested_len = len;
 
-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] Remove duplicated lines in memzone_reserve_aligned_thread_unsafe
  2014-01-02 13:05 [dpdk-dev] [PATCH] Remove duplicated lines in memzone_reserve_aligned_thread_unsafe peichao85
@ 2014-01-02 15:10 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2014-01-02 15:10 UTC (permalink / raw)
  To: peichao85; +Cc: dev

02/01/2014 14:05, peichao85@gmail.com :
> 
> Remove duplicated lines when reserving memory zone.
> 
> Signed-off-by: Pei Chao <peichao85@gmail.com>

Acked and applied in 1.5.1r2 with this log:

    mem: remove duplicated lines
    
    Extra space for future alignment was reserved twice.
    It was introduced in version 1.3.0 (commit 916e4f4f4e45a1d3cdd473cf9ef).


Thanks for your patch

-- 
Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-02 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-02 13:05 [dpdk-dev] [PATCH] Remove duplicated lines in memzone_reserve_aligned_thread_unsafe peichao85
2014-01-02 15:10 ` 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).