Message ID | 1424357149-14761-3-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | New |
Headers | show |
This is superseded by my patch to complete Petri's odp_pool_param_t implementation. This part should not be needed after that merge. On Thu, Feb 19, 2015 at 8:45 AM, Maxim Uvarov <maxim.uvarov@linaro.org> wrote: > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> > --- > platform/linux-generic/odp_buffer_pool.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/platform/linux-generic/odp_buffer_pool.c > b/platform/linux-generic/odp_buffer_pool.c > index f8e35b4..c6d1585 100644 > --- a/platform/linux-generic/odp_buffer_pool.c > +++ b/platform/linux-generic/odp_buffer_pool.c > @@ -283,9 +283,7 @@ odp_pool_t odp_pool_create(const char *name, > > pool->s.flags.unsegmented = unseg; > pool->s.flags.zeroized = zeroized; > - pool->s.seg_size = unseg ? > - blk_size : ODP_CONFIG_PACKET_SEG_LEN_MIN; > - > + pool->s.seg_size = blk_size; > > uint8_t *block_base_addr = pool->s.pool_base_addr; > uint8_t *mdata_base_addr = > -- > 1.8.5.1.163.gd7aced9 > > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp >
diff --git a/platform/linux-generic/odp_buffer_pool.c b/platform/linux-generic/odp_buffer_pool.c index f8e35b4..c6d1585 100644 --- a/platform/linux-generic/odp_buffer_pool.c +++ b/platform/linux-generic/odp_buffer_pool.c @@ -283,9 +283,7 @@ odp_pool_t odp_pool_create(const char *name, pool->s.flags.unsegmented = unseg; pool->s.flags.zeroized = zeroized; - pool->s.seg_size = unseg ? - blk_size : ODP_CONFIG_PACKET_SEG_LEN_MIN; - + pool->s.seg_size = blk_size; uint8_t *block_base_addr = pool->s.pool_base_addr; uint8_t *mdata_base_addr =
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- platform/linux-generic/odp_buffer_pool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)