Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-09 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/odp_pool.c line 80 @@ -403,6 +430,12 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, block_size = ROUNDUP_CACHE_LINE(hdr_size + align + headroom +

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 6 @@ -32,6 +32,10 @@ #define CACHE_BURST32 #define RING_SIZE_MIN (2 * CACHE_BURST) +/* Make sure packet buffers don't cross page boundaries starting from this page + * size. */

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 80 @@ -403,6 +430,12 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, block_size = ROUNDUP_CACHE_LINE(hdr_size + align + headroom +

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 40 @@ -232,19 +237,40 @@ static void init_buffers(pool_t *pool) uint32_t mask; int type; uint32_t seg_size; + uint64_t page_size = 0; + int skipped_blocks =

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 40 @@ -232,19 +237,40 @@ static void init_buffers(pool_t *pool) uint32_t mask; int type; uint32_t seg_size; + uint64_t page_size = 0; + int skipped_blocks =

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 6 @@ -32,6 +32,10 @@ #define CACHE_BURST32 #define RING_SIZE_MIN (2 * CACHE_BURST) +/* Make sure packet buffers don't cross page boundaries starting from this page + * size. */

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/odp_pool.c line 40 @@ -232,19 +237,40 @@ static void init_buffers(pool_t *pool) uint32_t mask; int type; uint32_t seg_size; + uint64_t page_size = 0; + int skipped_blocks = 0; + + if

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/odp_pool.c line 6 @@ -32,6 +32,10 @@ #define CACHE_BURST32 #define RING_SIZE_MIN (2 * CACHE_BURST) +/* Make sure packet buffers don't cross page boundaries starting from this page + * size. */ +#define

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 80 @@ -403,6 +430,12 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, block_size = ROUNDUP_CACHE_LINE(hdr_size + align + headroom +

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 6 @@ -32,6 +32,10 @@ #define CACHE_BURST32 #define RING_SIZE_MIN (2 * CACHE_BURST) +/* Make sure packet buffers don't cross page boundaries starting from this page + * size. */

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/odp_pool.c line 80 @@ -403,6 +430,12 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, block_size = ROUNDUP_CACHE_LINE(hdr_size + align + headroom +

Re: [lng-odp] [PATCH v1] linux-gen: pool: avoid allocating packets which cross page boundaries

2017-10-06 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 40 @@ -232,19 +237,40 @@ static void init_buffers(pool_t *pool) uint32_t mask; int type; uint32_t seg_size; + uint64_t page_size = 0; + int skipped_blocks =