Thanks. I'll address that in the v4 version of the patch. Bill
On Mon, Nov 24, 2014 at 6:44 AM, Alexandru Badicioiu < [email protected]> wrote: > Hi, > odp_ipsec application creates two packet pools and one context pool which > should contain as many buffers as both packet pools together: > /** > * Buffer pool for packet IO > */ > #define SHM_PKT_POOL_BUF_COUNT 1024 > #define SHM_PKT_POOL_BUF_SIZE 4096 > #define SHM_PKT_POOL_SIZE (SHM_PKT_POOL_BUF_COUNT * > SHM_PKT_POOL_BUF_SIZE) > > /** > * Buffer pool for crypto session output packets > */ > #define SHM_OUT_POOL_BUF_COUNT 1024 > #define SHM_OUT_POOL_BUF_SIZE 4096 > #define SHM_OUT_POOL_SIZE (SHM_OUT_POOL_BUF_COUNT * > SHM_OUT_POOL_BUF_SIZE) > > /** > * Per packet processing context > */ > > #define SHM_CTX_POOL_BUF_SIZE (sizeof(pkt_ctx_t)) > #define SHM_CTX_POOL_BUF_COUNT (SHM_PKT_POOL_BUF_COUNT + > SHM_OUT_POOL_BUF_COUNT) > #define SHM_CTX_POOL_SIZE (SHM_CTX_POOL_BUF_COUNT * > SHM_CTX_POOL_BUF_SIZE) > > Printing the pools it can be seen that actually there are less contexts > than packets: > odp_buffer_pool.c:526:odp_buffer_pool_print():Pool info > odp_buffer_pool.c:527:odp_buffer_pool_print():--------- > odp_buffer_pool.c:528:odp_buffer_pool_print(): pool 3 > odp_buffer_pool.c:529:odp_buffer_pool_print(): name packet_pool > odp_buffer_pool.c:530:odp_buffer_pool_print(): pool base 0x4864b000 > odp_buffer_pool.c:531:odp_buffer_pool_print(): buf base 0x4864b000 > odp_buffer_pool.c:532:odp_buffer_pool_print(): pool size 0x400000 > odp_buffer_pool.c:533:odp_buffer_pool_print(): buf size 4096 > odp_buffer_pool.c:534:odp_buffer_pool_print(): buf align 64 > odp_buffer_pool.c:535:odp_buffer_pool_print(): hdr size 120 > odp_buffer_pool.c:536:odp_buffer_pool_print(): alloc size 4224 > odp_buffer_pool.c:537:odp_buffer_pool_print(): offset to hdr 128 > odp_buffer_pool.c:538:odp_buffer_pool_print(): num bufs 992 > odp_buffer_pool.c:539:odp_buffer_pool_print(): free bufs 992 > > > odp_buffer_pool.c:526:odp_buffer_pool_print():Pool info > odp_buffer_pool.c:527:odp_buffer_pool_print():--------- > odp_buffer_pool.c:528:odp_buffer_pool_print(): pool 4 > odp_buffer_pool.c:529:odp_buffer_pool_print(): name ctx_pool > odp_buffer_pool.c:530:odp_buffer_pool_print(): pool base 0x48a4c000 > odp_buffer_pool.c:531:odp_buffer_pool_print(): buf base 0x48a4c000 > odp_buffer_pool.c:532:odp_buffer_pool_print(): pool size 0x2c000 > odp_buffer_pool.c:533:odp_buffer_pool_print(): buf size 88 > odp_buffer_pool.c:534:odp_buffer_pool_print(): buf align 64 > odp_buffer_pool.c:535:odp_buffer_pool_print(): hdr size 72 > odp_buffer_pool.c:536:odp_buffer_pool_print(): alloc size 256 > odp_buffer_pool.c:537:odp_buffer_pool_print(): offset to hdr 128 > odp_buffer_pool.c:538:odp_buffer_pool_print(): num bufs 688 > odp_buffer_pool.c:539:odp_buffer_pool_print(): free bufs 688 > odp_buffer_pool.c:549:odp_buffer_pool_print(): > > > Thanks, > Alex > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp > >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
